*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-dark: #0c2340;
    --blue-title: #5eb8ff;
    --blue-primary: #2563eb;
    --blue-primary-hover: #1d4ed8;
    --blue-btn-bg: #7ec8ff;
    --blue-btn-text: #0c2340;
    --blue-light: #dbeafe;
    --blue-info-bg: #e8f3fc;
    --blue-info-border: #b8d9f0;
    --blue-swap: #2563eb;
    --text-dark: #16324f;
    --text-muted: #6b7c93;
    --text-body: #374151;
    --white: #ffffff;
    --border: #d1d9e6;
    --shadow: 0 8px 32px rgba(12, 35, 64, 0.12);
    --radius-card: 24px;
    --radius-input: 12px;
    --radius-btn: 999px;
}

html {
    font-size: 16px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: #ffffff;
    color: var(--text-body);
    line-height: 1.5;
}

/* Hero + converter two-column zone */
.hero-zone {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #0c2340 0%, #05379a 45%, #2563eb 100% );
    padding: 3rem 1.5rem 0;
    margin-bottom: 60px;
}

.hero-zone--dropdown {
    overflow: visible;
}

    .hero-zone--dropdown .hero-zone__inner {
        overflow: visible;
    }

.hero-zone__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 420px;
}

/* Left column — heading, subtext, table */
.hero-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    justify-self: start;
}

.hero__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.15;
    text-align: left;
    margin: 0;
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.65;
    max-width: 420px;
    margin: 0;
    margin-bottom: 24px;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

    .conversion-table thead th {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        font-weight: 700;
        color: #fff;
        text-align: left;
        background: #05379a;
        border-bottom: none;
    }

    .conversion-table thead tr {
        border-bottom: 2px solid #042d7a;
    }

    .conversion-table tbody tr {
        border-bottom: 1px solid #e2e8f0;
    }

    .conversion-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
        color: var(--text-dark);
        text-align: left;
        border-bottom: none;
    }

    .conversion-table tbody tr:nth-child(even) {
        background: #f5f8fc;
    }

    .conversion-table tbody tr:nth-child(odd) {
        background: var(--white);
    }

/* Converter — right column */
.page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.hero-banner {
    position: absolute;
    right: max(1.5rem, calc((100vw - 1200px) / 2));
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: min(400px, 48%);
    max-width: 400px;
    line-height: 0;
    pointer-events: none;
}

.hero-banner__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
}

.page--converter {
    margin-bottom: 0;
    width: 100%;
    max-width: 520px;
    justify-self: start;
    padding-bottom: 3rem;
    overflow: visible;
}

/* Calculator v2 */
.calc-v2__title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.25;
}

.calc-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    overflow: visible;
}

.calc-v2__card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: none;
    border: none;
    padding: 1.35rem 1.5rem 1.5rem;
    overflow: visible;
}

.calc-v2__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.calc-v2__input-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.35rem;
}

.calc-v2__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.25rem 0;
    -moz-appearance: textfield;
}

    .calc-v2__input::-webkit-outer-spin-button,
    .calc-v2__input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.calc-v2__units {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0.75rem;
}

.calc-v2__unit-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.calc-v2__unit-col--to {
    text-align: right;
    align-items: flex-end;
}

.calc-v2__unit-label {
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 500;
}

.calc-v2__unit-value {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.35rem;
}

.calc-v2__swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #05379a;
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 0.15rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

    .calc-v2__swap-btn:hover {
        transform: scale(1.05);
        background: rgba(37, 99, 235, 0.18);
        box-shadow: 0 3px 14px rgba(37, 99, 235, 0.35);
    }

.calc-v2__swap-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.calc-v2__card--result {
    padding: 1.5rem 1.5rem 1.35rem;
}

.calc-v2__result-prefix {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 0 0 0.35rem;
}

.calc-v2__result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.calc-v2__reverse-link {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #05379a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.calc-v2__label--spaced {
    margin-top: 1.25rem;
}

.calc-v2__state-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.calc-v2__state-hint--active {
    color: #05379a;
    font-weight: 500;
}

.calc-v2__state-hint--warn {
    color: #b45309;
    font-weight: 500;
}

.calc-v2__select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #1f2937;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.15rem center;
    margin-bottom: 0.25rem;
}

    .calc-v2__select:focus {
        border-bottom-color: #05379a;
    }

.calc-v2__unit-select {
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #1f2937;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.35rem 1.75rem 0.35rem 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.calc-v2__unit-col--to .calc-v2__unit-select {
    text-align: right;
    background-position: left 0 center;
    padding-left: 1.75rem;
    padding-right: 0;
}

.calc-v2__unit-select:focus {
    border-bottom-color: #05379a;
}

/* Custom unit / state dropdown */
.unit-dd {
    position: relative;
    width: 100%;
}

.unit-dd--field {
    margin-bottom: 0.25rem;
}

.unit-dd__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 1.75rem 0.35rem 0;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.unit-dd--field .unit-dd__trigger {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2rem 0.75rem 0;
}

.unit-dd--right .unit-dd__trigger {
    text-align: right;
    padding: 0.35rem 0 0.35rem 1.75rem;
}

.unit-dd--field.unit-dd--right .unit-dd__trigger {
    padding: 0.75rem 0 0.75rem 2rem;
}

.unit-dd__trigger:hover {
    border-bottom-color: #9ca3af;
}

.unit-dd.is-open .unit-dd__trigger {
    border-bottom: 2px solid #2161cc;
    margin-bottom: -1px;
}

.unit-dd__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unit-dd__value--placeholder {
    font-weight: 500;
    color: #9ca3af;
}

.unit-dd__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.unit-dd.is-open .unit-dd__chevron {
    transform: rotate(180deg);
    color: #2161cc;
}

.unit-dd__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 300;
    background: #fff;
    border: 1px solid #4b5563;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.16);
}

.unit-dd--right .unit-dd__panel {
    left: 0;
    right: 0;
}

.unit-dd__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

    .unit-dd__list::-webkit-scrollbar {
        width: 10px;
    }

    .unit-dd__list::-webkit-scrollbar-track {
        background: #f3f4f6;
    }

    .unit-dd__list::-webkit-scrollbar-thumb {
        background: #c4c9d4;
        border-radius: 6px;
        border: 2px solid #f3f4f6;
    }

        .unit-dd__list::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

.unit-dd__option {
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

    .unit-dd__option.is-highlighted,
    .unit-dd__option:hover {
        background: #2161cc;
        color: #fff;
    }

    .unit-dd__option.is-selected:not(.is-highlighted) {
        font-weight: 600;
        color: #05379a;
    }

    .unit-dd__option.is-selected.is-highlighted {
        color: #fff;
    }

.calc-v2__units {
    position: relative;
    z-index: 2;
}

.calc-v2__unit-col {
    position: relative;
    z-index: 1;
    min-width: 0;
}

    .calc-v2__unit-col:has(.unit-dd.is-open) {
        z-index: 100;
    }

.calc-v2__card--input:has(.unit-dd.is-open) {
    z-index: 10;
    position: relative;
}

/* Main unit calculators grid (area converter page) */
.main-unit-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding-top:0;
}

.main-unit-section__inner {
    width: 100%;
}

.main-unit-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.main-unit-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem 1.25rem;
}

    .main-unit-page-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
        font-weight: 600;
        color: #2d3748;
        text-decoration: none;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        transition: background 0.12s, color 0.12s, border-color 0.12s;
    }

        .main-unit-page-list a::after {
            content: "›";
            font-size: 1.1rem;
            font-weight: 700;
            color: #05379a;
            flex-shrink: 0;
        }

        .main-unit-page-list a:hover {
            background: #f4f8fc;
            color: #05379a;
            border-color: #c5d4e8;
        }

@media (max-width: 768px) {
    .main-unit-page-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .main-unit-page-list {
        grid-template-columns: 1fr;
    }
}


/* Legacy converter card */
.converter-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: none;
    border: none;
    padding: 1.75rem 1.5rem 0;
    overflow: hidden;
    z-index: 2;
}

/* Rate header */
.rate-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rate-header__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    cursor: help;
}

.rate-header__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Field groups */
.field-group {
    margin-bottom: 0.25rem;
}

.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.input-row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    overflow: hidden;
    background: var(--white);
}

.amount-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

    .amount-input:focus {
        background: #f8fafc;
    }

.unit-select {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    border-left: 1.5px solid var(--border);
    background: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.unit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-primary);
    background: var(--blue-light);
    border-radius: 6px;
}

.unit-code {
    letter-spacing: 0.04em;
    font-size: 12px;
}

.state-select {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

    .state-select:focus {
        border-color: var(--blue-primary);
        background-color: #f8fafc;
    }

/* Swap button */
.swap-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
    position: relative;
    z-index: 1;
}

.swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #05379a;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: background 0.15s, transform 0.15s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

    .swap-btn svg {
        width: 20px;
        height: 20px;
    }

/* Info box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(56,200,255,0.10196);
    border-radius: 12px;
    display: none;
}

.converter-card__content {
    position: relative;
}

.info-box__icon {
    font-size: 1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.info-box__text {
    font-size: 0.82rem;
    color: #0b4c72;
    line-height: 1.45;
}

.info-box__link {
    color: var(--blue-primary);
    font-weight: 600;
    text-decoration: none;
}

    .info-box__link:hover {
        text-decoration: underline;
    }

/* Action buttons */
.actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-bottom: 1.5rem;
}

.btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
    background: #05379a;
    color: #fff;
    border: #05379a;
}

    .btn--primary:hover {
        background: #05379a;
        border-color: #05379a;
    }

.btn--secondary {
    background: var(--white);
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

    .btn--secondary:hover {
        background: var(--blue-light);
    }


/* About 6 cm + formula */
.about-section {
    background: #ffffff;
    border-top: none;
    width: 100%;
    margin-bottom: 40px;
}

.about-section__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    width: 100%;
    background: var(--white);
    border: none;
    border-radius: 12px;
    box-shadow: none;
}

.about-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #05379a;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--blue-light);
}

.about-card__text,
.about-card__note,
.about-card__example {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-card__text {
    margin-bottom: 1rem;
}

.about-card__result {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.about-card__result-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #05379a;
}

.about-card__result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.about-card__note {
    margin: 0;
}

.formula-box {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem;
}

.formula-box__row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    background: #f5f8fc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #05379a;
}

.formula-box__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #05379a;
}

.formula-box__code {
    font-family: "Inter", ui-monospace, monospace;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a202c;
    background: none;
}

.about-card__example {
    margin: 0;
}

    .about-card__example strong {
        color: var(--text-dark);
    }

.about-section__inner--single {
    grid-template-columns: 1fr;
}

.about-card--wide {
    max-width: 100%;
    width: 100%;
}

.about-card__disclaimer {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.about-card__subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #05379a;
    margin: 1.25rem 0 0.65rem;
}

.about-card {
    counter-reset: section-subtitle;
}

    .about-card h3.about-card__subtitle {
        counter-increment: section-subtitle;
    }

        .about-card h3.about-card__subtitle::before {
            content: counter(section-subtitle) ". ";
        }

.about-card__subtitle--lead {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: -0.35rem;
    margin-bottom: 1rem;
}

.about-card__list {
    margin: 0 0 1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

    .about-card__list li {
        margin-bottom: 0.35rem;
    }

.about-card__list--ordered {
    list-style: decimal;
    margin-left: 1.25rem;
}

.conversion-table--content {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .about-section__inner {
        grid-template-columns: 1fr;
    }
}

/* Calculator directory (accordion layout) */
.sections-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.calc-directory__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.calc-directory__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
}

.calc-directory__desc--sub {
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
}

.calc-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: none;
    box-shadow: none;
    border-radius: var(--radius-btn);
}

.calc-search__icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.calc-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
}

    .calc-search__input::placeholder {
        color: #9ca3af;
    }

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion {
    background: var(--white);
    border: none;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
}

    .accordion[hidden] {
        display: none;
    }

.accordion__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

    .accordion__header::-webkit-details-marker {
        display: none;
    }

    .accordion__header::marker {
        display: none;
    }

.accordion[open] .accordion__header {
    border-bottom-color: #eef2f7;
}

.accordion__header:hover {
    background: #fafbfc;
}

.accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #05379a;
    flex-shrink: 0;
}

.accordion__title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3748;
    text-align: left;
}

.accordion__chevron {
    display: flex;
    align-items: center;
    color: #05379a;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.accordion:not([open]) .accordion__chevron {
    transform: rotate(180deg);
}

.accordion__body {
    padding: 0 0 0.5rem;
}

.calc-links {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
}

.calc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    border-top: 1px solid #f0f2f5;
    transition: background 0.12s, color 0.12s;
}

    .calc-link:nth-child(odd) {
        border-right: none;
    }

    .calc-link::after {
        content: "›";
        font-size: 1.1rem;
        font-weight: 700;
        color: #05379a;
        flex-shrink: 0;
    }

    .calc-link:hover {
        background: #f4f8fc;
        color: #05379a;
    }

    .calc-link.is-hidden {
        display: none;
    }

.accordion__resources {
    margin: 0.5rem 1.25rem 0.35rem;
    padding-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #05379a;
    border-top: 1px solid #eef2f7;
}

.calc-directory__empty {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ section */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.faq-section__title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.faq-list {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
}

    .faq-item__question::-webkit-details-marker {
        display: none;
    }

    .faq-item__question::marker {
        display: none;
    }

.faq-item__text {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    line-height: 1.4;
}

.faq-item__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #05379a;
    transition: transform 0.2s ease;
}

    .faq-item__chevron svg {
        display: block;
    }

.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 0 1.35rem;
    max-width: 90%;
}

    .faq-item__answer p {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.65;
    }

@media (max-width: 640px) {
    .calc-links {
        grid-template-columns: 1fr;
    }

    .calc-link:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 900px) {
    .hero-zone {
        padding-bottom: 0;
    }

    .hero-zone__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-banner {
        display: none;
    }

    .hero-left {
        justify-self: center;
        max-width: 100%;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    .hero__title,
    .hero__subtitle {
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .page--converter {
        justify-self: start;
        max-width: 100%;
    }

    .page {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-zone {
        padding: 2rem 1rem 0;
        margin-bottom: 0;
    }

    .converter-card {
        padding: 1.5rem 1.25rem 0;
    }

    .sections-wrap {
        padding: 2rem 1rem 3rem;
    }

    .about-section {
        padding: 0 12px;
    }

    .faq-section {
        padding: 0 12px;
    }

    .faq-item__answer {
        max-width: 100%;
    }

    .main-unit-section__inner {
        padding: 40px 12px;
    }
}
