/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

.app {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    height: 28px;
    width: auto;
    display: block;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #34A853;
    font-weight: 600;
    font-size: 15px;
}

.phone-number:hover {
    opacity: 0.8;
}

/* ===== Hero ===== */
.hero {
    padding: 0 40px;
}

.hero-card {
    background: #eceaf0;
    border-radius: 6px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    min-height: 380px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 26px;
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 600;
}

.hero-description {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    max-width: 360px;
}

.cta-button {
    background: #34A853;
    border: none;
    border-radius: 4px;
    padding: 12px 36px;
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: fit-content;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #2d9447;
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image {
    width: 100%;
    max-width: 460px;
    height: 360px;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== Features ===== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 40px 40px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #34A853;
}

.feature-description {
    font-size: 11px;
    line-height: 1.5;
    color: #888;
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    background: #eceaf0;
    color: #1a1a1a;
    padding: 48px 40px;
    /* фон на всю ширину окна, даже когда .app ограничен 1440px */
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.footer-list li {
    font-size: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.footer-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    margin-top: 4px;
    width: fit-content;
}

.footer-download:hover {
    opacity: 0.85;
}

.footer-copy {
    margin-top: 12px;
    font-size: 12px;
    color: #1a1a1a;
}

/* ===== Contact Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 375px;
    max-width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e9e9e9;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: #111;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-button:hover {
    transform: scale(1.1);
}

.close-button:hover svg path {
    fill: #111;
}

.contact-form {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group input {
    background: #f7f7f7;
    border: none;
    border-radius: 4px;
    padding: 16px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #111;
    transition: border 0.2s ease;
}

.form-group input::placeholder {
    color: #949494;
}

.form-group input:focus {
    outline: none;
    background: #f0f0f0;
}

.form-group input.error {
    border: 2px solid #ff5252;
    background: #fff5f5;
}

.error-message {
    color: #ff5252;
    font-size: 12px;
    line-height: 1.4;
    min-height: 17px;
    font-family: 'Poppins', sans-serif;
}

.submit-button {
    background: #4CAF50;
    border: none;
    border-radius: 32px;
    padding: 20px 32px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.privacy-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #c4c4c4;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin-top: 1px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.privacy-checkbox:hover {
    border-color: #4CAF50;
}

.privacy-checkbox:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.privacy-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-row.has-error .privacy-checkbox {
    border-color: #ff5252;
}

.privacy-notice {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #949494;
    font-weight: 400;
    cursor: pointer;
}

.privacy-link {
    color: #4CAF50;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-link:hover {
    color: #45a049;
}

.agreed-error {
    min-height: 0;
}

/* ===== Tablet ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        padding: 32px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .header {
        padding: 14px 16px;
    }

    .logo-text {
        font-size: 14px;
    }

    .phone-number {
        font-size: 13px;
    }

    .phone-number span {
        display: none;
    }

    .phone-number::after {
        content: '8 (800) 000-00-00';
    }

    .hero {
        padding: 0 16px;
    }

    .hero-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        min-height: auto;
    }

    .hero-image-wrap {
        order: -1;
    }

    .hero-image {
        height: 220px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-description {
        font-size: 12px;
    }

    .cta-button {
        width: 100%;
        padding: 14px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .footer {
        padding: 32px 16px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-list li,
    .footer-download,
    .footer-copy {
        font-size: 13px;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        max-width: 343px;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-title {
        font-size: 20px;
    }

    .contact-form {
        padding: 20px 24px;
    }
}
