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

/* Variables */
:root {
    --color-dark-text: #2F2647;
    --color-light-bg: #EDF2FF;
    --color-white: #FFFFFF;
    --color-button-blue: #4263EB;
    --color-text-light: #6B7280;
}

/* Base Styles */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-dark-text);
    background-color: #1A1A1A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Mobile Container */
.mobile-container {
    background-color: var(--color-white);
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: #EDF2FF;
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--color-dark-text);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: rgba(66, 99, 235, 0.1);
}

.lang-btn.active {
    background-color: var(--color-button-blue);
    color: var(--color-white);
}

.logo-img {
    height: 32px;
    width: auto;
}

/* Hero Section */
.hero {
    background-color: #EDF2FF;
    padding: 24px 0 40px;
}

.hero .container {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Первая строка: два столбца */
.hero-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 19px;
    width: 231px;
    flex-shrink: 0;
}

.hero-button-wrapper {
    width: 100%;
    margin-top: 19px;
}

.btn-hero {
    width: 100%;
    max-width: 100%;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-dark-text);
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
    text-align: left;
    margin: 0;
    width: 177px;
}

.title-word {
    display: block;
    font-size: 42.3px;
    letter-spacing: -0.03em;
    line-height: 0.944;
}

.title-accent {
    font-size: 42.3px;
    line-height: 0.962;
}

.title-small {
    font-size: 32px;
    line-height: 1.04;
}

.title-nowrap {
    white-space: nowrap;
    display: inline-block;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 228px;
}

.benefit-item {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark-text);
    text-align: left;
}

.hero-image-wrapper {
    width: 126px;
    height: 177px;
    flex-shrink: 0;
    position: relative;
}

.hero-image {
    width: 126px;
    height: 177px;
    object-fit: contain;
    display: block;
}


/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-button-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 9px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 317px;
    height: 56px;
    text-decoration: none;
    position: relative;
}

.btn-primary:visited {
    color: var(--color-white);
}

.btn-primary:focus {
    outline: 2px solid var(--color-button-blue);
    outline-offset: 2px;
}

.btn-primary:hover {
    background-color: #364FC7;
}

.btn-primary span {
    text-align: center;
}

.btn-primary svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-center {
    margin: 32px auto 0;
    display: flex;
}

/* Calculator Section */
.calculator-section {
    padding: 48px 0;
    background-color: var(--color-white);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.208;
    color: var(--color-dark-text);
    text-align: center;
    margin-bottom: 39px;
}

.section-title-left {
    text-align: left;
}

.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 39px;
    width: 249px;
    margin-left: auto;
    margin-right: auto;
}

.calc-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.calc-label {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark-text);
    text-align: center;
}

.calc-value {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 0.857;
    color: var(--color-dark-text);
    text-align: center;
}

.calc-symbol {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 0.75;
    color: var(--color-dark-text);
}

.calc-result {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 40px;
    line-height: 1.195;
    color: var(--color-dark-text);
    text-align: center;
}

/* Requirements Section */
.requirements-section {
    padding: 48px 0;
    background-color: var(--color-light-bg);
}

.requirements-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.requirement-card {
    background-color: var(--color-white);
    border-radius: 24px;
    padding: 22px 18px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.requirement-icon {
    width: 94px;
    height: 94px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirement-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.requirement-text {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.27;
    color: var(--color-dark-text);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-note {
    font-weight: 400;
    font-size: 16px;
    color: var(--color-dark-text);
    margin-top: 4px;
}

/* FAQ Section */
.faq-section {
    padding: 48px 0;
    background-color: var(--color-white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.faq-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-dark-text);
    margin-bottom: 12px;
    padding: 0;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-button-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-dark-text);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 0 0 0;
}

/* Footer */
.footer {
    padding: 48px 0 32px;
    background-color: var(--color-light-bg);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 32px;
    width: auto;
}

.footer-company {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 320px) {
    .mobile-container {
        width: 100%;
        min-width: 320px;
    }
    
    .container {
        padding: 0 8px;
        max-width: 100%;
    }
    
    .hero {
        padding: 16px 0 32px;
    }
    
    .hero-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .hero-text-wrapper {
        width: auto;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 108px);
    }
    
    .hero-title {
        width: auto;
        max-width: 100%;
    }
    
    .title-word {
        font-size: 32px;
        line-height: 1.1;
    }
    
    .title-accent {
        font-size: 32px;
    }
    
    .title-small {
        font-size: 24px;
    }
    
    .title-nowrap {
        font-size: 24px;
        white-space: nowrap;
    }
    
    .hero-benefits {
        width: 100%;
    }
    
    .benefit-item {
        font-size: 14px;
    }
    
    .hero-image-wrapper {
        width: 100px;
        height: 140px;
        flex-shrink: 0;
    }
    
    .hero-image {
        width: 100px;
        height: 140px;
    }
    
    .hero-button-wrapper {
        margin-top: 12px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .hero-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hero-text-wrapper {
        width: 231px;
        flex-shrink: 0;
    }
    
    .hero-title {
        width: 177px;
    }
    
    .hero-benefits {
        width: 228px;
    }
    
    .hero-image-wrapper {
        width: 126px;
        height: 177px;
        flex-shrink: 0;
    }
    
    .hero-image {
        width: 126px;
        height: 177px;
    }
    
    .hero-button-wrapper {
        margin-top: 19px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 100%;
    }
    
    .btn-primary {
        max-width: 100%;
    }
    
    .btn-center {
        width: 100%;
        max-width: 100%;
    }
    
    .calculator {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .mobile-container {
        max-width: 100%;
    }
    
    .container {
        max-width: 720px;
        padding: 0 24px;
    }

    /* Hero Section Desktop */
    .hero {
        padding: 40px 0 60px;
    }

    .hero .container {
        padding: 0 24px;
    }

    .hero-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-text-wrapper {
        width: auto;
        flex: 1;
        max-width: 500px;
        gap: 24px;
    }

    .hero-title {
        width: auto;
    }

    .title-word {
        font-size: 48px;
    }

    .title-accent {
        font-size: 48px;
    }

    .title-small {
        font-size: 36px;
    }

    .hero-benefits {
        width: 100%;
        gap: 8px;
    }

    .benefit-item {
        font-size: 18px;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 280px;
        flex-shrink: 0;
    }

    .hero-image {
        width: 200px;
        height: 280px;
    }

    .hero-button-wrapper {
        margin-top: 24px;
    }

    .btn-hero {
        width: auto;
        max-width: 400px;
        padding: 12px 24px;
        font-size: 16px;
        height: 56px;
    }

    .btn-center {
        width: auto;
        max-width: 400px;
    }

    .header-content {
        gap: 16px;
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .section-title {
        font-size: 32px;
    }

    .requirements-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .calculator {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: auto;
    }

    .calc-symbol {
        margin: 0 8px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    /* Hero Section Large Desktop */
    .hero {
        padding: 60px 0 80px;
    }

    .hero .container {
        padding: 0 40px;
    }

    .hero-row {
        gap: 40px;
        align-items: center;
    }

    .hero-text-wrapper {
        max-width: 600px;
        gap: 32px;
    }

    .title-word {
        font-size: 56px;
    }

    .title-accent {
        font-size: 56px;
    }

    .title-small {
        font-size: 42px;
    }

    .benefit-item {
        font-size: 20px;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 350px;
    }

    .hero-image {
        width: 250px;
        height: 350px;
    }

    .hero-button-wrapper {
        margin-top: 32px;
    }

    .btn-hero {
        max-width: 450px;
        padding: 14px 32px;
        font-size: 18px;
        height: 64px;
    }

    .btn-center {
        max-width: 450px;
    }

    .requirements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }

    /* Hero Section Extra Large Desktop */
    .hero {
        padding: 80px 0 100px;
    }

    .hero .container {
        padding: 0 60px;
    }

    .hero-row {
        gap: 60px;
    }

    .hero-text-wrapper {
        max-width: 700px;
        gap: 40px;
    }

    .title-word {
        font-size: 64px;
    }

    .title-accent {
        font-size: 64px;
    }

    .title-small {
        font-size: 48px;
    }

    .benefit-item {
        font-size: 22px;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 420px;
    }

    .hero-image {
        width: 300px;
        height: 420px;
    }

    .btn-hero {
        max-width: 500px;
        padding: 16px 40px;
        font-size: 20px;
        height: 72px;
    }

    .btn-center {
        max-width: 500px;
    }
}
