.translation-page {
    overflow: clip;
}

.translation-page *,
.translation-page *::before,
.translation-page *::after {
    min-width: 0;
}

.translation-hero {
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.translation-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.72fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
}

.translation-hero h1 {
    max-width: 11ch;
    margin: 0.75rem 0 0;
    font-size: clamp(3.1rem, 6.5vw, 6.15rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    overflow-wrap: break-word;
}

.translation-hero-lead {
    max-width: 63ch;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.translation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.translation-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.75rem;
    border: 1px solid var(--accent-2-line);
    border-radius: 999px;
    background: var(--accent-2-soft);
    color: var(--accent-2-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.localization-preview {
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.35rem;
    background:
        linear-gradient(145deg, rgba(110, 168, 255, 0.09), transparent 42%),
        rgba(255, 255, 255, 0.025);
}

.localization-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.localization-preview-head span,
.localization-preview-result span,
.translation-type-label,
.scope-label {
    color: var(--accent-2-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.localization-preview-head strong {
    color: var(--muted);
    font-size: 0.82rem;
}

.localization-line {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.localization-line > span {
    color: var(--accent-2-strong);
    font-size: 0.72rem;
    font-weight: 800;
}

.localization-line p {
    grid-column: 2;
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.5;
}

.localization-line small {
    grid-column: 2;
    color: var(--muted);
}

.localization-line-featured {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    background: rgba(110, 168, 255, 0.07);
}

.localization-preview-result {
    padding-top: 1.15rem;
}

.localization-preview-result p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.translation-types,
.translation-choice,
.language-price-section,
.recommended-languages,
.scope-section,
.translation-faq {
    background: rgba(255, 255, 255, 0.016);
}

.translation-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.6fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: end;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.translation-section-head h2,
.language-price-copy h2,
.word-price-panel h2,
.translation-final-panel h2 {
    max-width: 12ch;
    margin: 0.65rem 0 0;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.translation-section-head > p,
.language-price-copy > p,
.word-price-panel > div > p,
.translation-final-panel > div > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.translation-section-head-wide h2 {
    max-width: 14ch;
}

.translation-type-grid,
.translation-choice-grid,
.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.3rem;
    overflow: hidden;
}

.translation-type-grid article,
.translation-choice-grid article,
.scope-grid article {
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.translation-type-grid article + article,
.translation-choice-grid article + article,
.scope-grid article + article {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.translation-type-featured {
    background: rgba(110, 168, 255, 0.05);
}

.translation-type-grid h3 {
    max-width: 15ch;
    margin: 0.8rem 0 0;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.translation-type-grid article > p {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.translation-type-grid ul,
.translation-choice-grid ul,
.scope-grid ul {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.translation-type-grid li,
.translation-choice-grid li,
.scope-grid li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    line-height: 1.45;
}

.translation-type-grid li::before,
.translation-choice-grid li::before,
.scope-grid li::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--accent-2-strong);
}

.translation-choice-grid article:first-child {
    background: rgba(255, 255, 255, 0.018);
}

.translation-choice-grid article:last-child {
    background: rgba(110, 168, 255, 0.05);
}

.translation-choice-grid article > span {
    display: block;
    max-width: 15ch;
    color: var(--text);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.deployment-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 6rem);
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(155, 194, 255, 0.18);
    border-radius: 1.15rem;
    background: rgba(110, 168, 255, 0.035);
}

.deployment-copy > span {
    color: var(--accent-2-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deployment-copy p {
    margin: 0.8rem 0 0;
    color: var(--text);
    line-height: 1.65;
}

.deployment-panel dl {
    margin: 0;
}

.deployment-panel dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deployment-panel dl div:last-child {
    border-bottom: 0;
}

.deployment-panel dt {
    color: var(--muted);
    line-height: 1.5;
}

.deployment-panel dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.translation-table-wrap {
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.022);
    overflow: hidden;
}

.translation-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.translation-table th,
.translation-table td {
    padding: 1.15rem 1.25rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.translation-table th {
    border-bottom: 1px solid rgba(155, 194, 255, 0.2);
    background: rgba(110, 168, 255, 0.07);
    color: var(--accent-2-strong);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.translation-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    color: var(--muted);
    line-height: 1.55;
}

.translation-table tbody tr:last-child td {
    border-bottom: 0;
}

.translation-table th:first-child,
.translation-table td:first-child {
    width: 27%;
    color: var(--text);
    font-weight: 700;
}

.translation-table th:last-child,
.translation-table td:last-child {
    width: 24%;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.translation-note {
    max-width: 72ch;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.language-price-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: center;
}

.language-price-copy h2 {
    max-width: 9ch;
}

.language-price-copy > p {
    margin-top: 1.2rem;
}

.price-example {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-example span {
    color: var(--accent-2-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-example p {
    margin: 0.55rem 0 0;
    color: var(--text);
    line-height: 1.65;
}

.translation-table-compact th:first-child,
.translation-table-compact td:first-child {
    width: 38%;
}

.translation-table-compact th:last-child,
.translation-table-compact td:last-child {
    width: 62%;
}

.word-price-grid {
    display: grid;
    gap: 1rem;
}

.translation-calculator {
    background: rgba(255, 255, 255, 0.016);
}

.calculator-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
    border: 1px solid rgba(155, 194, 255, 0.2);
    border-radius: 1.35rem;
    background:
        linear-gradient(140deg, rgba(110, 168, 255, 0.08), transparent 45%),
        rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
}

.calculator-field {
    display: grid;
    gap: 0.5rem;
}

.calculator-field:nth-child(4) {
    grid-column: 1 / -1;
}

.calculator-field label {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 750;
}

.calculator-field input,
.calculator-field select {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: #0d121b;
    color: var(--text);
    font: inherit;
}

.calculator-field input:focus,
.calculator-field select:focus {
    border-color: var(--accent-2-strong);
    outline: 2px solid rgba(155, 194, 255, 0.18);
    outline-offset: 2px;
}

.calculator-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(110, 168, 255, 0.055);
}

.calculator-result > span {
    color: var(--accent-2-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.calculator-result strong {
    display: block;
    margin-top: 0.9rem;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.calculator-result p {
    margin: 1.1rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.calculator-result small {
    display: block;
    min-height: 2.8em;
    margin-top: 0.75rem;
    color: var(--text);
    line-height: 1.45;
}

.calculator-result .btn {
    align-self: flex-start;
    margin-top: 1.5rem;
}

.calculator-warning {
    max-width: 76ch;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.word-price-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 6rem);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgba(155, 194, 255, 0.2);
    border-radius: 1.35rem;
    background:
        linear-gradient(140deg, rgba(110, 168, 255, 0.09), transparent 43%),
        rgba(255, 255, 255, 0.025);
}

.word-price-panel > div > p {
    margin-top: 1.2rem;
}

.word-rates {
    display: grid;
}

.word-rates article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    align-items: end;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.word-rates article:last-child {
    border-bottom: 0;
}

.word-rates span {
    color: var(--muted);
}

.word-rates strong {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    letter-spacing: -0.04em;
}

.word-rates small {
    grid-column: 2;
    color: var(--accent-2-strong);
    text-align: right;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.language-grid article {
    min-height: 14rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-grid span {
    color: var(--accent-2-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.language-grid h3 {
    margin: 2.2rem 0 0;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    letter-spacing: -0.035em;
}

.language-grid p {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.example-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
}

.example-flow article {
    min-height: 15rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.example-flow article + article {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.example-flow-featured {
    background: rgba(110, 168, 255, 0.07);
}

.example-flow span {
    color: var(--accent-2-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.example-flow p {
    margin: 3rem 0 0;
    color: var(--text);
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
}

.scope-grid dl {
    margin: 1.4rem 0 0;
}

.scope-grid dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scope-grid dt {
    color: var(--muted);
}

.scope-grid dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.translation-process-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.translation-process-list li {
    min-height: 12rem;
    padding: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.translation-process-list span {
    color: var(--accent-2-strong);
    font-size: 0.72rem;
    font-weight: 800;
}

.translation-process-list p {
    margin: 2.5rem 0 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.5;
}

.translation-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.translation-faq-list details {
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

.translation-faq-list summary {
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
}

.translation-faq-list p {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.translation-final {
    padding-top: 2rem;
}

.translation-final-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 0.65fr);
    gap: clamp(2rem, 8vw, 7rem);
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid rgba(155, 194, 255, 0.2);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 88% 10%, rgba(110, 168, 255, 0.14), transparent 28%),
        rgba(255, 255, 255, 0.035);
}

.translation-final-panel h2 {
    max-width: 9ch;
}

@media (max-width: 1024px) {
    .translation-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.72fr);
        gap: 2.5rem;
    }

    .translation-hero h1 {
        font-size: clamp(3rem, 7vw, 4.8rem);
    }

    .translation-process-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .translation-hero-copy,
    .translation-hero h1,
    .translation-hero-lead {
        width: 100%;
        max-width: none;
    }

    .translation-section-head,
    .language-price-copy,
    .word-price-panel,
    .deployment-copy,
    .translation-final-panel {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
        justify-self: stretch;
        align-self: stretch;
        flex-basis: 100%;
    }

    .translation-section-head h2,
    .language-price-copy h2,
    .word-price-panel h2,
    .translation-final-panel h2 {
        width: 100%;
        max-width: none;
    }

    .translation-hero-grid,
    .translation-section-head,
    .translation-type-grid,
    .translation-choice-grid,
    .language-price-grid,
    .word-price-panel,
    .deployment-panel,
    .calculator-panel,
    .scope-grid,
    .translation-final-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .translation-hero {
        padding-top: 3.5rem;
    }

    .translation-section-head {
        align-items: start;
        gap: 1.25rem;
    }

    .translation-type-grid article + article,
    .translation-choice-grid article + article,
    .scope-grid article + article {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .calculator-result {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .language-grid,
    .example-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .language-grid article {
        min-height: auto;
    }

    .language-grid h3 {
        margin-top: 1.4rem;
    }

    .example-flow article {
        min-height: auto;
    }

    .example-flow article + article {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .example-flow p {
        margin-top: 1.5rem;
    }

    .translation-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .translation-process-list li {
        min-height: 10rem;
    }

    .translation-faq-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .translation-hero h1 {
        max-width: 100%;
        font-size: clamp(2.65rem, 12.5vw, 3.9rem);
        line-height: 0.96;
    }

    .translation-hero .hero-actions,
    .translation-final-panel .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .translation-hero .btn,
    .translation-final-panel .btn,
    .calculator-result .btn {
        width: 100%;
    }

    .calculator-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .calculator-field:nth-child(4) {
        grid-column: auto;
    }

    .calculator-result .btn {
        align-self: stretch;
    }

    .translation-table,
    .translation-table tbody,
    .translation-table tr,
    .translation-table td {
        display: block;
        width: 100%;
    }

    .translation-table thead {
        display: none;
    }

    .translation-table tr {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .translation-table tbody tr:last-child {
        border-bottom: 0;
    }

    .translation-table td,
    .translation-table th:first-child,
    .translation-table td:first-child,
    .translation-table th:last-child,
    .translation-table td:last-child,
    .translation-table-compact th:first-child,
    .translation-table-compact td:first-child,
    .translation-table-compact th:last-child,
    .translation-table-compact td:last-child {
        width: 100%;
        padding: 0.5rem 0;
        border: 0;
        text-align: left;
    }

    .translation-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: var(--accent-2-strong);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .word-rates article {
        grid-template-columns: minmax(0, 1fr);
    }

    .word-rates small {
        grid-column: 1;
        text-align: left;
    }

    .scope-grid dl div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .scope-grid dd {
        text-align: left;
    }

    .deployment-panel dl div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .deployment-panel dd {
        text-align: left;
    }

    .translation-process-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .translation-process-list li {
        min-height: auto;
    }

    .translation-process-list p {
        margin-top: 1.25rem;
    }
}
