*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --font-ui: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --bg: #141819;
    --bg-strong: #111516;
    --panel: rgba(26, 32, 33, 0.96);
    --panel-strong: rgba(29, 35, 36, 0.98);
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #edece7;
    --muted: #a5aeaa;
    --muted-strong: #c1c8c3;
    --text-on-image: #eef3f9;
    --text-on-image-muted: #d5dee9;
    --accent: #b6c7b5;
    --accent-strong: #d4dfd0;
    --accent-soft: rgba(182, 199, 181, 0.14);
    --success: #9bb79f;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-soft: 0 20px 50px rgba(2, 6, 23, 0.45);
    --shadow-card: 0 14px 30px rgba(2, 6, 23, 0.4);
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    font-family: var(--font-ui);
    font-weight: 400;
    background:
        radial-gradient(1200px 800px at 15% -10%, rgba(72, 135, 255, 0.16), transparent 60%),
        radial-gradient(900px 700px at 85% 0%, rgba(9, 155, 132, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(7, 11, 18, 0.86) 0%, rgba(9, 14, 22, 0.88) 45%, rgba(7, 10, 16, 0.9) 100%);
    background-size: auto, auto, auto;
    background-position: center, center, center;
    background-repeat: no-repeat;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: clip;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.65), rgba(6, 9, 14, 0.15));
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
    opacity: 0.35;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: -1;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid rgba(182, 199, 181, 0.5);
    outline-offset: 2px;
}

p {
    line-height: 1.65;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.btn--primary {
    background: linear-gradient(135deg, rgba(21, 38, 60, 0.92), rgba(18, 34, 56, 0.8));
    border-color: rgba(182, 199, 181, 0.55);
    color: var(--text);
    box-shadow: 0 14px 26px rgba(7, 10, 18, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost {
    background: rgba(8, 12, 20, 0.72);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 20px rgba(7, 10, 18, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 199, 181, 0.6);
}

.btn--outline:hover,
.btn--ghost:hover {
    background: rgba(182, 199, 181, 0.08);
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(8, 12, 20, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.header__bar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.logo__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
}

.site-favicon {
    border-radius: 6px;
}

.logo__text-main {
    font-weight: 700;
    font-size: 1rem;
}

.logo__text-sub {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.95rem;
    color: var(--muted-strong);
}

.nav__link {
    position: relative;
    padding-bottom: 0.2rem;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    opacity: 1;
}

.nav__link--cta {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(182, 199, 181, 0.35);
    background: rgba(182, 199, 181, 0.12);
    color: var(--text);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: rgba(182, 199, 181, 0.2);
    border-color: rgba(182, 199, 181, 0.5);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(32, 39, 40, 0.7);
    color: var(--text);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(32, 39, 40, 0.7);
    padding: 0.2rem;
}

.lang-switch__btn {
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    padding: 0.35rem 0.6rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
}

.lang-switch__btn.is-active {
    background: rgba(182, 199, 181, 0.15);
    color: var(--text);
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(26, 32, 33, 0.8);
    font-size: 0.88rem;
}

.header__phone--compact {
    display: none;
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 10px;
}

.header__phone svg {
    width: 16px;
    height: 16px;
}

.header__phone--compact svg {
    width: 30px;
    height: 30px;
    display: block;
}

.header__phone--compact img {
    width: 32px;
    height: 32px;
    display: block;
}

.header__phone-label {
    color: var(--muted-strong);
    font-weight: 500;
}

.header__phone-number {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4.5rem 1.5rem 1.5rem;
    background: rgba(4, 8, 14, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__panel {
    width: min(320px, 100%);
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(26, 32, 33, 0.98);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.mobile-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mobile-menu__link:last-child {
    border-bottom: 0;
}

.mobile-menu__link--call {
    gap: 0.75rem;
}

.mobile-menu__phone-number {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--muted);
}

.mobile-menu__lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
}

.mobile-menu__lang-label {
    font-weight: 600;
    color: var(--text);
}

.mobile-menu__lang-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.section--bg {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.section--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(20, 24, 25, 0.85) 0%, rgba(20, 24, 25, 0.35) 28%, rgba(20, 24, 25, 0.08) 50%, rgba(20, 24, 25, 0.35) 72%, rgba(20, 24, 25, 0.85) 100%),
        linear-gradient(rgba(12, 18, 16, .18), rgba(12, 18, 16, .18)),
        linear-gradient(rgba(40, 55, 46, .38), rgba(40, 55, 46, .38)),
        var(--section-bg-image, none);
    background-blend-mode: normal, normal, color, normal;
    background-size: var(--section-bg-size, cover);
    background-position: var(--section-bg-position, center);
    background-repeat: no-repeat;
    opacity: var(--section-bg-opacity, 1);
    z-index: 0;
}

.section--bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 24, 25, 1) 0%, rgba(20, 24, 25, 0.4) 20%, rgba(20, 24, 25, 0) 40%, rgba(20, 24, 25, 0) 60%, rgba(20, 24, 25, 0.4) 80%, rgba(20, 24, 25, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.section--bg > * {
    position: relative;
    z-index: 2;
}

.section--bg .hero__subtitle,
.section--bg .section__subtitle {
    color: var(--text-on-image-muted);
    text-shadow: 0 2px 14px rgba(4, 7, 12, 0.65), 0 1px 2px rgba(4, 7, 12, 0.75);
}

.section--bg-hero {
    --section-bg-image: url("../images/bg1-v2.webp");
}

/* Replace bg*.jpg with your section-specific images when ready. */
.section--bg-contacts {
    --section-bg-image: url("../images/bg2-v2.webp");
    --section-bg-opacity: 0.85;
}

.section--bg-how {
    --section-bg-image: url("../images/bg3-v2.webp");
    --section-bg-opacity: 0.85;
}

.section--bg-app {
    --section-bg-image: url("../images/bg4-v2.webp");
    --section-bg-opacity: 0.85;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 4rem 0 2.5rem;
}

@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.hero__eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(182, 199, 181, 0.3);
    background: rgba(182, 199, 181, 0.08);
    color: var(--accent-strong);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.2rem, 3.1vw, 3.2rem);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero__title-accent {
    color: var(--accent);
}

.hero__subtitle {
    margin-top: 1.2rem;
    color: var(--muted);
    max-width: 520px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.4rem 0 1.6rem;
}

.chip {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(8, 12, 20, 0.72);
    box-shadow: 0 8px 18px rgba(7, 10, 18, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--muted-strong);
    font-size: 0.85rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__rates-card {
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
}

.hero__rates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.hero__rates-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero__rates-meta {
    display: flex;
    justify-content: flex-end;
    min-width: 180px;
}

.hero__rates-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.hero__rates-time {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.35);
}

.hero__rates-time-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(155, 183, 159, 0.6);
}

.hero__rates-table {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rates-table th {
    text-align: left;
    padding-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rates-table td {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: top;
}

.rates-table tr[data-rate-row] {
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.rates-table tr[data-rate-row]:hover {
    background: rgba(182, 199, 181, 0.06);
}

.rates-table__pair {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rates-table__pair-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-family: var(--font-ui);
}

.rates-table__flag {
    width: 1.15rem;
    height: 0.85rem;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 0.18rem;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.rates-table__code {
    font-family: var(--font-ui);
    letter-spacing: 0.02em;
}

.rates-table__pair-sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.rates-table__label {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rates-table strong {
    display: block;
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: 1.02rem;
    margin-top: 0.2rem;
}

.hero__rates-time time,
.calc-result__value,
.calc-meta [data-calc-rate] {
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.hero__rates-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.section {
    padding: 4rem 0;
}

.section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.4rem;
}

.section__title {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.section__subtitle {
    margin-top: 0.7rem;
    color: var(--muted);
    max-width: 640px;
}

.section__note {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(182, 199, 181, 0.3);
    background: rgba(182, 199, 181, 0.08);
    color: var(--accent-strong);
    font-size: 0.9rem;
}


.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(26, 32, 33, 0.92);
}

.step__number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(182, 199, 181, 0.12);
    color: var(--accent-strong);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step__title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.step__text {
    color: var(--muted);
}

.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.6rem;
}

.contacts-card {
    padding: 1.6rem;
}

.contacts-list {
    display: grid;
    gap: 1.3rem;
}

.contact-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.contact-row__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(32, 39, 40, 0.7);
}

.contact-row__label {
    font-size: 0.9rem;
    color: var(--muted-strong);
    margin-bottom: 0.3rem;
}

.contact-row__value a,
.contact-row__value {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.contact-row__hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.contacts__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.6rem 0;
}

.tag {
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--muted-strong);
    font-size: 0.8rem;
}

.contacts__cta {
    margin-top: 1rem;
}

.panel__header {
    padding: 1.6rem 1.6rem 0;
}

.panel__title {
    font-size: 1.05rem;
    font-weight: 600;
}

.services-list {
    list-style: none;
    padding: 1.2rem 1.6rem 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
    color: var(--muted);
}

.services-list li {
    position: relative;
    padding-left: 1.2rem;
}

.services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.panel__note {
    padding: 1.2rem 1.6rem 1.6rem;
    color: var(--muted-strong);
    font-size: 0.9rem;
}


.app-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 1.8rem;
}

.app-card--compact {
    max-width: 880px;
    margin: 0 auto;
}

.app-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.app-card__text {
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.store-buttons--compact {
    gap: 0.6rem;
}

.btn--small {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

.app-card__note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}


.calc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 60;
}

.calc-backdrop.is-visible {
    opacity: 1;
}

.calc-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    padding: 1.5rem;
}

.calc-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.calc-modal__panel {
    width: min(520px, 100%);
    background: var(--panel-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem;
}

.calc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.calc-modal__title {
    font-size: 1.3rem;
}

.calc-modal__subtitle {
    color: var(--muted);
    margin-top: 0.35rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(32, 39, 40, 0.8);
    cursor: pointer;
}

.calc-form {
    display: grid;
    gap: 1.2rem;
}

.call-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 60;
}

.call-backdrop.is-visible {
    opacity: 1;
}

.call-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    padding: 1.5rem;
}

.call-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.call-modal__panel {
    width: min(520px, 100%);
    background: var(--panel-strong);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem;
}

.call-modal__handle {
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    margin: 0 auto 1rem;
}

.call-modal__header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.call-modal__title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.call-modal__subtitle {
    color: var(--muted);
}

.call-modal__list {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.call-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(26, 32, 33, 0.8);
    color: var(--text);
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.call-modal__item:active {
    transform: translateY(1px);
    border-color: rgba(182, 199, 181, 0.45);
    background: rgba(182, 199, 181, 0.12);
}

.call-modal__number {
    font-weight: 600;
    font-size: 1.05rem;
}

.call-modal__label {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.call-modal__chevron {
    color: var(--muted);
    font-size: 1.1rem;
}

.call-modal__cancel {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: var(--muted-strong);
    padding: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

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

.calc-field__label {
    font-size: 0.85rem;
    color: var(--muted-strong);
}

.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

input[type="number"],
select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(21, 27, 28, 0.9);
    color: var(--text);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(1rem + 2px),
        calc(100% - 11px) calc(1rem + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.segmented {
    display: flex;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(21, 27, 28, 0.9);
    overflow: hidden;
}

.segmented__btn {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.4rem;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.segmented__btn.is-active {
    background: rgba(182, 199, 181, 0.16);
    color: var(--text);
}

.calc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(182, 199, 181, 0.25);
    background: rgba(182, 199, 181, 0.08);
}

.calc-result__label {
    font-size: 0.85rem;
    color: var(--muted-strong);
}

.calc-result__value {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.calc-result__note {
    font-size: 0.9rem;
    color: var(--muted-strong);
}

.calc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.85rem;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__link {
    color: var(--text);
}

[data-animate] {
    opacity: 1;
    transform: none;
}

[data-animate].panel {
    transform: none;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate].panel.is-visible {
    transform: none;
}

@media (max-width: 1080px) {
    .hero__grid,
    .app-card {
        grid-template-columns: 1fr;
    }

    .hero__content {
        order: 2;
    }

    .hero__rates-card {
        order: 1;
    }
}

@media (max-width: 960px) {
    .steps,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .header__bar {
        border-radius: 14px;
        border: 1px solid var(--border-strong);
        background: rgba(26, 32, 33, 0.92);
        padding: 0.35rem 0.6rem 0.35rem 0.4rem;
        gap: 0.6rem;
        box-shadow: 0 14px 30px rgba(8, 12, 20, 0.35);
    }

    .logo {
        padding: 0.25rem 0.55rem;
        border-radius: 12px;
        background: rgba(182, 199, 181, 0.08);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .lang-switch,
    .header__phone {
        display: none;
    }

    .header__phone-number {
        display: none;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

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

    .rates-table thead {
        display: none;
    }

    .rates-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "pair pair"
            "buy sell";
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 18px;
        padding: 0.65rem 0.85rem;
        margin-bottom: 0.55rem;
        background: rgba(26, 32, 33, 0.92);
        box-shadow: 0 16px 34px rgba(8, 12, 20, 0.35);
        text-align: left;
    }

    .rates-table td {
        border: 0;
        padding: 0.4rem 0;
    }

    .rates-table td + td {
        border-top: 0;
    }

    .rates-table__label {
        font-size: 0.7rem;
    }

    .rates-table td:first-child {
        grid-area: pair;
        padding-bottom: 0.55rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .rates-table td:nth-child(2) {
        grid-area: buy;
        padding-right: 0.6rem;
    }

    .rates-table td:nth-child(3) {
        grid-area: sell;
        padding-left: 0.6rem;
        border-left: 1px solid rgba(148, 163, 184, 0.12);
    }

    .rates-table__pair-main {
        letter-spacing: normal;
        text-transform: none;
    }

    .rates-table__code {
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .rates-table strong {
        font-size: 1.2rem;
    }

    .hero__rates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero__rates-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 1rem;
    }

    .header__inner {
        flex-wrap: nowrap;
        gap: 0.6rem;
        justify-content: center;
        padding: 0.65rem 0;
    }

    .header__actions {
        width: auto;
        margin-left: 0;
        gap: 0.35rem;
    }

    .logo__text-main {
        font-size: 0.95rem;
    }

    .logo__text-sub {
        display: none;
    }

    .menu-toggle,
    .lang-switch,
    .header__phone {
        height: 36px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-right: 0;
        background: rgba(18, 26, 40, 0.85);
        border-color: rgba(148, 163, 184, 0.45);
    }

    .header__phone--compact {
        display: inline-flex;
        background: rgba(18, 26, 40, 0.85);
        border-color: rgba(148, 163, 184, 0.45);
        width: 36px;
        height: 36px;
    }

    .header__phone {
        padding: 0.45rem 0.75rem;
    }

    .hero__title {
        font-size: clamp(1.95rem, 7vw, 2.4rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn,
    .hero__rates-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__rates-actions {
        flex-direction: column;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__rates-card {
        padding: 1.2rem;
    }

    .hero__rates-header {
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    body::before,
    body::after {
        position: absolute;
    }
}

@media (max-width: 900px), (prefers-reduced-motion: reduce), (prefers-reduced-transparency: reduce) {
    :root {
        --shadow-soft: none;
        --shadow-card: none;
    }

    body::after {
        opacity: 0;
        background-image: none;
    }

    .panel,
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .btn--primary,
    .header__bar,
    .rates-table tr {
        box-shadow: none;
    }
}

@supports (-webkit-touch-callout: none) {
    body::before,
    body::after {
        position: absolute;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* Responsive refinements: stable icon boxes and inexpensive surfaces. */
:root { --radius-lg: 18px; --transition-base: 0.16s ease; }
body::before, body::after { display: none; }

.panel, .header, .btn, .hero__rates-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel { background: #1b2122; box-shadow: 0 12px 32px #0002; }
.header { background: #151a1bf5; }
.btn { min-height: 46px; }
.btn--primary { background: #b6c7b5; color: #1b241e; border-color: #b6c7b5; box-shadow: none; }
.btn--primary:hover { background: #e0e7db; color: #1b241e; }
.btn svg, .header__phone svg, .contact-row__icon svg { width: 20px; height: 20px; flex: 0 0 20px; display: block; }
.hero__rates-time { gap: 8px; padding: 6px 10px; border: 0; background: #252d2d; border-radius: 8px; white-space: nowrap; line-height: 1.4; }
.hero__rates-time-dot { width: 6px; height: 6px; flex: 0 0 6px; box-shadow: none; }
.hero__rates-time time { font-variant-numeric: tabular-nums; }
.hero__rates-time.is-unavailable .hero__rates-time-dot { background: #e9b45b; }
.btn, a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section[id] { scroll-margin-top: 100px; }
.calc-modal__panel, .call-modal__panel { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.calc-result__value { overflow-wrap: anywhere; }
.store-buttons .btn { gap: 12px; }
@media (max-width: 720px) {
    .header__inner { justify-content: space-between; padding-inline: 12px; }
    .header__bar { min-width: 0; }
    .header__actions { flex-shrink: 0; }
    .menu-toggle, .header__phone--compact { min-width: 44px; width: 44px; height: 44px; padding: 10px; }
    .lang-switch__btn { min-height: 40px; }
    .store-buttons { display: grid; grid-template-columns: 1fr; }
    .store-buttons .btn { width: 100%; white-space: normal; }
    .hero__rates-meta { min-width: 0; }
    .calc-field input, .calc-field select { font-size: 16px; }
}
@media (max-width: 380px) {
    .logo__text-main { font-size: 11px; }
    .logo { gap: 6px; }
    .header__actions { gap: 4px; }
    .header__inner { padding-inline: 8px; }
}

/* Photo backgrounds with lightweight, responsive WebP assets. */
:root { --accent: #b6c7b5; --accent-strong: #d4dfd0; --border: #c1cbc326; --radius-lg: 14px; }

.section--bg { border-bottom: 0; }
.hero { min-height: auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.hero__grid { align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero__title { font-size: clamp(2.35rem, 4.1vw, 3.65rem); line-height: 1.08; letter-spacing: -.035em; }
.hero__title-accent { color: #ccd7c6; }
.hero__subtitle { line-height: 1.8; }
.panel { background: #1a2021f5; border-color: #c1cbc32b; box-shadow: 0 20px 50px #02071140; }
.hero__rates-card { border-top: 1px solid var(--border-strong); padding: 1.6rem; }
.hero__rates-title { font-size: 1.15rem; }
.hero__rates-header { flex-wrap: wrap; gap: 12px; }
.hero__rates-meta { min-width: 0; }
.rates-table td { padding-block: .9rem; vertical-align: middle; }
.rates-table td:last-child strong { color: #bacdbb; }
.rates-table strong { font-variant-numeric: tabular-nums; }
.btn { border-radius: 12px; font-weight: 600; }
.btn--primary { background: #ccd7c6; border-color: #ccd7c6; }
.btn--ghost, .btn--outline { background: #1a2021d9; border-color: #c1cbc338; }
.chip { background: #1a2021d9; border-color: #c1cbc326; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section__title { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.025em; }
.step { border-radius: 18px; background: #1a2021ed; border: 1px solid #c1cbc326; }
.contact-row__icon { background: #b6c7b515; border-radius: 12px; color: #ccd7c6; }
.app-card { background: #1c2422f5; }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .rates-table tr[data-rate-row]:hover { background: #b6c7b50d; }
}
@media (max-width: 720px) {
    .section--bg-hero { --section-bg-image: url('../images/bg1-mobile-v2.webp'); }
    .section--bg-contacts { --section-bg-image: url('../images/bg2-mobile-v2.webp'); }
    .section--bg-how { --section-bg-image: url('../images/bg3-mobile-v2.webp'); }
    .section--bg-app { --section-bg-image: url('../images/bg4-mobile-v2.webp'); }
    .hero { padding-block: 2.5rem; }
    .hero__rates-card { padding: 1.1rem; }
    .hero__title { font-size: clamp(2.15rem, 8vw, 3rem); }
}

/* Interaction motion is short and limited to opacity/transform. */
html { scrollbar-gutter: stable; }
[data-managed-dialog] { transition: none !important; }
.btn, .icon-btn, .menu-toggle, .header__phone, .lang-switch__btn, .segmented__btn {
    transition: transform 140ms cubic-bezier(.2,.8,.2,1), background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:active, .icon-btn:active, .menu-toggle:active, .header__phone:active { transform: scale(.97); }
.lang-switch__btn:active, .segmented__btn:active { transform: scale(.96); }
.nav__link::after { transform: scaleX(.7); transform-origin: left; transition: opacity 140ms ease, transform 180ms ease; }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.hero__rates-time { min-height: 30px; }
.hero__rates-time time { display: inline-block; min-width: 8ch; }
.hero__rates-time[aria-busy="true"] .hero__rates-time-dot { animation: checking-rate 900ms ease-in-out infinite alternate; }
@keyframes checking-rate { from { opacity: 1; } to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
    .btn:active, .icon-btn:active, .menu-toggle:active, .header__phone:active,
    .lang-switch__btn:active, .segmented__btn:active, .btn:hover { transform: none; }
}

@media (min-width: 901px) {
    .rates-table { table-layout: fixed; }
    .rates-table th:first-child { width: 50%; }
    .rates-table strong { display: inline-block; min-width: 5ch; }
}

/* Quiet editorial hierarchy and restrained accents. */
body { background: #141819; }
.hero__title { font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
.hero__title-accent { color: #ccd7c6; }
.hero__subtitle, .section--bg .hero__subtitle, .section--bg .section__subtitle { color: #c3c9c5; text-shadow: 0 1px 4px #0005; }
.section__title { font-weight: 500; letter-spacing: -.02em; }
.panel { box-shadow: 0 10px 32px #00000026; }
.btn { border-radius: 8px; }
.btn--primary { color: #1b241e; background: #ccd7c6; border-color: #ccd7c6; }
.btn--primary:hover { background: #e0e7db; border-color: #e0e7db; }
.btn--ghost:hover, .btn--outline:hover { background: #2c3532; border-color: #9eafa280; }
.hero__rates-title { font-weight: 500; }
.hero__rates-time { background: transparent; padding-inline: 0; color: #aeb8b1; }
.rates-table th { letter-spacing: .045em; }
.rates-table strong { font-weight: 500; }
.chip { border-color: #c1cbc324; background: #1a2021b8; border-radius: 6px; }
.step { border-radius: 12px; }
.step__number { background: transparent; border: 1px solid #b6c7b538; border-radius: 50%; color: #c5d2bf; }
.contact-row__icon { background: #b6c7b510; border-radius: 8px; color: #c5d2bf; }
.header__phone { background: transparent; border-color: #c1cbc338; }
.logo__text-main { letter-spacing: .025em; }
@media (max-width: 900px) {
    .header__bar { background: transparent; border-color: transparent; box-shadow: none; padding-left: 0; }
    .logo { background: transparent; padding-left: 0; }
    .rates-table tr { border-radius: 10px; box-shadow: none; }
}

/* A restrained side drawer, with a dedicated close control. */
.mobile-menu { padding: 0; align-items: stretch; background: rgba(8, 12, 11, .58); }
.mobile-menu__panel {
    width: min(360px, calc(100% - 40px)); height: 100%; max-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-left: 1px solid #c1cbc326; border-radius: 0;
    background: #1a2021; box-shadow: -12px 0 40px #0002;
}
.mobile-menu__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; margin-bottom: 8px; color: #a5aeaa; font-size: 13px; letter-spacing: .08em; }
.mobile-menu__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #c1cbc32b; border-radius: 50%; background: transparent; color: #edece7; cursor: pointer; }
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__close:hover { background: #c1cbc310; }
.mobile-menu__link { min-height: 64px; padding: 18px 0; font-size: 18px; font-weight: 500; border-color: #c1cbc31a; }
.mobile-menu__link > span:last-child { color: #a5aeaa; font-size: 22px; }
.mobile-menu__link--call { margin-top: 24px; font-size: 15px; }
.mobile-menu__phone-number { margin-top: 6px; font-size: 14px; }
.mobile-menu__lang { margin-top: auto; padding-top: 32px; flex-shrink: 0; }
.mobile-menu__lang-label { font-size: 13px; font-weight: 400; color: #a5aeaa; }
.mobile-menu__lang-actions { background: #141819; border-color: #c1cbc326; border-radius: 8px; }
.mobile-menu__lang-actions .lang-switch__btn { min-width: 48px; min-height: 44px; }
.menu-toggle { background: transparent; border-color: #c1cbc338; }
@media (max-height: 520px) { .mobile-menu__heading { padding-bottom: 8px; } .mobile-menu__link { min-height: 48px; padding-block: 12px; } .mobile-menu__lang { padding-top: 16px; } }

/* Comfortable reading over slightly darker photographs. */
.hero__subtitle { font-size: 1.0625rem; line-height: 1.8; max-width: 48ch; }
.section__subtitle { font-size: 1rem; line-height: 1.75; max-width: 62ch; }
.step__text, .app-card__text, .panel__note, .services-list li { font-size: .975rem; line-height: 1.75; color: #c3cbc5; }
.step__title, .app-card__title { line-height: 1.4; }
.contact-row__hint { line-height: 1.65; color: #aeb9b1; }
.hero__subtitle, .section__subtitle, .step__text, .app-card__text { text-wrap: pretty; }
@media (max-width: 720px) {
    .hero__subtitle, .section__subtitle, .step__text, .app-card__text { font-size: 1rem; line-height: 1.7; }
}

/* Clear feedback for navigation, clickable quotes and form controls. */
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { opacity: 1; transform: scaleX(1); }
.mobile-menu__link.is-current { color: #ccd7c6; border-bottom-color: #b6c7b56b; }
.mobile-menu__link > span:last-child, .call-modal__chevron { transition: transform 150ms ease; }
.rates-table tr.is-selected { background: #b6c7b514; }
.rates-table tr.is-selected .rates-table__code { color: #d4dfd0; }
.calc-field { border-radius: 8px; }
.calc-field__label { transition: color 140ms ease; }
.calc-field:focus-within .calc-field__label { color: #d4dfd0; }
.calc-field input, .calc-field select { transition: border-color 140ms ease, background-color 140ms ease; }
.calc-field input:focus, .calc-field select:focus { border-color: #b6c7b5; background-color: #222d28; outline: 2px solid #b6c7b52b; outline-offset: 2px; }
.calc-field input[aria-invalid="true"] { border-color: #d5a296; }
.calc-hint { min-height: 3.4em; font-size: .85rem; line-height: 1.6; color: #aeb9b1; margin: 0; }
.calc-hint.is-error { color: #e1b4a9; }
.calc-result { transition: border-color 180ms ease, background-color 180ms ease; }
.calc-result.has-result { border-color: #b6c7b561; background-color: #b6c7b514; }
.segmented__btn.is-active { box-shadow: inset 0 0 0 1px #b6c7b53d; }
@media (hover: hover) and (pointer: fine) {
    .rates-table tr[data-rate-row]:hover { background: #b6c7b51a; }
    .mobile-menu__link:hover > span:last-child, .call-modal__item:hover .call-modal__chevron { transform: translateX(4px); }
    .header__phone:hover, .menu-toggle:hover, .icon-btn:hover { background: #b6c7b51a; border-color: #b6c7b580; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-menu__link:hover > span:last-child, .call-modal__item:hover .call-modal__chevron { transform: none; }
}
