/* Sattar Tour and Travel — main site */
:root,
html[data-theme="dark"] {
    --bg: #050505;
    --bg-elevated: #0e0c09;
    --bg-card: rgba(18, 15, 10, 0.88);
    --gold: #c9a227;
    --gold-bright: #e8c547;
    --gold-dim: rgba(201, 162, 39, 0.28);
    --cream: #f5efe0;
    --cream-muted: rgba(245, 239, 224, 0.7);
    --cream-faint: rgba(245, 239, 224, 0.45);
    --line: rgba(201, 162, 39, 0.35);
    --line-soft: rgba(245, 239, 224, 0.1);
    --success: #2f7a52;
    --danger: #a33b3b;
    --whatsapp: #1f6b45;
    --bale: #1a4a7a;
    --font: "Vazirmatn", Tahoma, sans-serif;
    --font-brand: "Cormorant Garamond", "Times New Roman", serif;
    --radius: 4px;
    --header-h: 72px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --container: 1120px;
    --header-bg: rgba(5, 5, 5, 0.82);
    --footer-bg: rgba(0, 0, 0, 0.35);
    --field-bg: rgba(0, 0, 0, 0.4);
    --rate-card-bg: rgba(0, 0, 0, 0.35);
    --theme-toggle-bg: rgba(18, 15, 10, 0.9);
    --link-hover: #f5efe0;
}

html[data-theme="light"] {
    --bg: #f4efe4;
    --bg-elevated: #fffcf6;
    --bg-card: rgba(255, 252, 246, 0.94);
    --gold: #a68520;
    --gold-bright: #8f7318;
    --gold-dim: rgba(166, 133, 32, 0.22);
    --cream: #1c170f;
    --cream-muted: rgba(28, 23, 15, 0.72);
    --cream-faint: rgba(28, 23, 15, 0.5);
    --line: rgba(166, 133, 32, 0.45);
    --line-soft: rgba(28, 23, 15, 0.1);
    --shadow: 0 16px 40px rgba(90, 70, 20, 0.12);
    --header-bg: rgba(244, 239, 228, 0.92);
    --footer-bg: rgba(255, 252, 246, 0.75);
    --field-bg: rgba(255, 255, 255, 0.85);
    --rate-card-bg: rgba(255, 255, 255, 0.7);
    --theme-toggle-bg: rgba(255, 252, 246, 0.95);
    --link-hover: #5c4a12;
    --whatsapp: #1f6b45;
    --bale: #1a4a7a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--cream);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--link-hover); }
ul { list-style: none; }

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

/* Background */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(201, 162, 39, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 60%, rgba(90, 60, 10, 0.2), transparent 50%),
        linear-gradient(180deg, #050505, #090806 50%, #050505);
    transition: opacity .35s ease;
}
html[data-theme="light"] .page-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(201, 162, 39, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 70%, rgba(210, 180, 100, 0.18), transparent 50%),
        linear-gradient(180deg, #f7f2e6, #efe8d8 45%, #f4efe4);
}
html[data-theme="light"] .glow-a {
    background: rgba(201, 162, 39, 0.2);
}
html[data-theme="light"] .glow-b {
    background: rgba(180, 140, 60, 0.16);
}
html[data-theme="light"] .grain {
    opacity: .035;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .4;
    animation: drift 16s ease-in-out infinite alternate;
}
.glow-a {
    width: min(50vw, 380px);
    height: min(50vw, 380px);
    top: 10%;
    left: 8%;
    background: rgba(201, 162, 39, 0.18);
}
.glow-b {
    width: min(40vw, 300px);
    height: min(40vw, 300px);
    bottom: 15%;
    right: 10%;
    background: rgba(100, 70, 15, 0.22);
    animation-delay: -7s;
}
.grain {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(20px, -16px); }
}

.site-header,
.site-main,
.site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
}
.logo-link img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gold-dim);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-en {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    letter-spacing: .08em;
    color: var(--gold-bright);
    text-transform: uppercase;
}
.logo-fa { font-size: .78rem; color: var(--cream-muted); }

.site-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.site-nav a {
    color: var(--cream-muted);
    padding: .55rem .85rem;
    font-size: .92rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--gold-bright);
    transition: .25s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--theme-toggle-bg);
    color: var(--gold-bright);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.theme-toggle:hover {
    border-color: var(--gold-bright);
    transform: translateY(-1px);
}
.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hero */
.hero {
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.hero-logo {
    width: clamp(120px, 22vw, 168px);
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 14px 36px rgba(201, 162, 39, 0.28));
    animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-brand {
    font-family: var(--font-brand);
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    letter-spacing: .12em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.hero-fa {
    color: var(--cream-muted);
    margin-bottom: 1.25rem;
}
.gold-rule {
    width: 72px;
    height: 1px;
    margin: 0 auto 1.35rem;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.hero h1 {
    font-size: clamp(1.35rem, 3.8vw, 1.9rem);
    font-weight: 700;
    max-width: 18em;
    margin: 0 auto 1rem;
    line-height: 1.55;
}
.hero-lead {
    max-width: 34em;
    margin: 0 auto 1.75rem;
    color: var(--cream-muted);
    font-size: 1.02rem;
}
.hero-experience {
    color: var(--gold-bright);
    font-weight: 700;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.85rem;
    padding: .6rem 1.35rem;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #b8912a, #e0bf4a 55%, #a67c1d);
    color: #14100a;
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
    color: #0a0805;
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-bale { background: var(--bale); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Sections */
.section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.section-head {
    text-align: center;
    margin-bottom: 2rem;
}
.section-head h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    color: var(--gold-bright);
    margin-bottom: .4rem;
}
.section-head p {
    color: var(--cream-muted);
    max-width: 36em;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-top: 1px solid var(--line);
    padding: 1.6rem 1.35rem;
    text-align: center;
    transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover {
    border-color: var(--line);
    transform: translateY(-3px);
}
.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--gold);
}
.service-card h3 {
    font-size: 1.08rem;
    margin-bottom: .5rem;
}
.service-card p {
    color: var(--cream-muted);
    font-size: .92rem;
    margin-bottom: 1.1rem;
}

/* Rates */
.rates-panel {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.rates-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
    color: var(--cream-faint);
}
.rates-meta strong { color: var(--cream-muted); font-weight: 500; }
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .85rem;
}
.rate-card {
    background: var(--rate-card-bg);
    border: 1px solid var(--line-soft);
    padding: 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-height: 96px;
}
.rate-card .code {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--gold-bright);
}
.rate-card .name { font-size: .82rem; color: var(--cream-faint); }
.rate-card .value {
    margin-top: .35rem;
    font-family: var(--font-brand);
    font-size: 1.35rem;
    letter-spacing: .02em;
    color: var(--cream);
    direction: ltr;
    text-align: right;
}
.rate-card .unit { font-size: .78rem; color: var(--cream-faint); }
.rates-note {
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--cream-faint);
}
.rates-actions {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}
.rates-status {
    font-size: .85rem;
    color: var(--cream-muted);
}
.rates-status.is-error { color: #e08a8a; }
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    min-height: 96px;
    border: 1px solid var(--line-soft);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Converter */
.converter {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .85rem;
    align-items: end;
}
.converter label {
    display: block;
    font-size: .85rem;
    color: var(--cream-muted);
    margin-bottom: .35rem;
}
.converter-swap {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-bright);
    cursor: pointer;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.field-control {
    width: 100%;
    min-height: 2.75rem;
    padding: .55rem .85rem;
    background: var(--field-bg);
    border: 1px solid var(--line-soft);
    color: var(--cream);
    font-family: var(--font);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s ease;
}
.field-control:focus {
    border-color: var(--gold);
}

/* Contact strip */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    padding: 1.5rem;
    text-align: center;
}
.contact-card .phone {
    font-family: var(--font-brand);
    font-size: 1.55rem;
    color: var(--cream);
    direction: ltr;
    display: inline-block;
    margin: .5rem 0 1rem;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

/* Forms */
.page-hero {
    padding: 2.5rem 0 1.25rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    color: var(--gold-bright);
    margin-bottom: .5rem;
}
.page-hero p {
    color: var(--cream-muted);
    max-width: 34em;
    margin: 0 auto;
}

.form-shell {
    width: min(720px, 100%);
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
}
.form-group { text-align: right; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    color: var(--cream-muted);
}
.form-group label .req { color: var(--gold); }
.form-group .hint {
    font-size: .78rem;
    color: var(--cream-faint);
    margin-top: .3rem;
}
textarea.field-control { min-height: 120px; resize: vertical; }
select.field-control { cursor: pointer; }
.form-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.alert {
    padding: .9rem 1rem;
    margin-bottom: 1.15rem;
    border: 1px solid var(--line);
    font-size: .92rem;
}
.alert-success {
    background: rgba(47, 122, 82, 0.18);
    border-color: rgba(47, 122, 82, 0.5);
}
.alert-error {
    background: rgba(163, 59, 59, 0.18);
    border-color: rgba(163, 59, 59, 0.5);
}

.challenge-box {
    margin-top: .35rem;
    padding: 1rem;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.06);
}

/* News */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.news-meta {
    color: var(--cream-faint);
    font-size: .9rem;
}
.news-meta strong { color: var(--cream-muted); font-weight: 500; }
.news-meta .dot { margin: 0 .4rem; opacity: .6; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.news-card:hover {
    border-color: var(--line);
    transform: translateY(-2px);
}
.news-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-top {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
    font-size: .78rem;
    color: var(--cream-faint);
}
.news-source { color: var(--gold); font-weight: 500; }
.news-title {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: .55rem;
    font-weight: 600;
}
.news-title a { color: var(--cream); }
.news-title a:hover { color: var(--gold-bright); }
.news-summary {
    color: var(--cream-muted);
    font-size: .9rem;
    margin-bottom: .9rem;
    flex: 1;
}
.news-more {
    font-size: .88rem;
    font-weight: 500;
    color: var(--gold-bright);
}
.news-note {
    margin-top: 1.5rem;
    font-size: .82rem;
    color: var(--cream-faint);
    text-align: center;
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.35rem;
    align-items: start;
    margin-bottom: 2.5rem;
}
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-top: 1px solid var(--line);
    padding: 1.35rem 1.25rem;
}
.contact-info-card h2 {
    font-size: 1.05rem;
    color: var(--gold-bright);
    margin-bottom: .85rem;
}
.contact-address {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--cream);
    letter-spacing: .03em;
    margin-bottom: .25rem;
}
.contact-address-fa {
    color: var(--cream-muted);
    font-size: .95rem;
}
.contact-phone-row {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.contact-phone-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-phone-row:first-of-type { padding-top: 0; }
.contact-phone-link {
    display: inline-block;
    font-family: var(--font-brand);
    font-size: 1.35rem;
    color: var(--cream);
    margin-bottom: .65rem;
}
.contact-phone-link:hover { color: var(--gold-bright); }
.contact-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.instagram-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.28);
    color: var(--cream);
    transition: border-color .2s ease, transform .2s ease;
}
.instagram-link:hover {
    border-color: var(--gold);
    color: var(--cream);
    transform: translateY(-1px);
}
.instagram-link .ig-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold-bright);
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.instagram-link strong {
    display: block;
    color: var(--gold-bright);
    font-weight: 600;
}
.instagram-link span span {
    display: block;
    color: var(--cream-muted);
    font-size: .92rem;
    margin-top: .1rem;
}
.contact-form-shell {
    width: 100%;
    margin: 0;
}
.contact-form-shell h2 {
    color: var(--gold-bright);
    font-size: 1.2rem;
    margin-bottom: .35rem;
}
.form-intro {
    color: var(--cream-muted);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}
.contact-message { min-height: 160px; }
.contact-map-block { margin-top: .5rem; }
.map-frame {
    border: 1px solid var(--line-soft);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: var(--shadow);
}
.map-frame iframe {
    display: block;
    width: 100%;
    height: min(420px, 55vh);
    border: 0;
    filter: grayscale(0.15) contrast(1.05);
}
.map-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line-soft);
    background: var(--footer-bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.75rem;
}
.footer-brand img {
    width: 64px;
    margin-bottom: .75rem;
}
.footer-en {
    font-family: var(--font-brand);
    color: var(--gold-bright);
    letter-spacing: .08em;
}
.footer-tag {
    color: var(--cream-faint);
    font-size: .88rem;
    margin-top: .35rem;
}
.site-footer h3 {
    color: var(--gold);
    font-size: .95rem;
    margin-bottom: .75rem;
}
.site-footer li + li { margin-top: .35rem; }
.site-footer a { color: var(--cream-muted); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding: 1rem 0 1.35rem;
    text-align: center;
    color: var(--cream-faint);
    font-size: .82rem;
}

.toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    max-width: min(92vw, 360px);
    padding: .85rem 1.15rem;
    background: rgba(12, 10, 7, 0.95);
    border: 1px solid var(--line);
    color: var(--cream);
    font-size: .88rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* PWA install banner */
.pwa-install-banner {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%) translateY(120%);
    width: min(560px, calc(100% - 1.5rem));
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
}
.pwa-install-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.pwa-install-banner[hidden] {
    display: none !important;
}
.pwa-install-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem 1rem;
    align-items: center;
}
.pwa-install-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    grid-row: span 2;
}
.pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.pwa-install-text strong {
    color: var(--gold-bright);
    font-size: .98rem;
}
.pwa-install-text > span {
    color: var(--cream-muted);
    font-size: .85rem;
    line-height: 1.6;
}
.pwa-ios-hint {
    margin-top: .45rem;
    font-size: .8rem;
    color: var(--cream-faint);
    line-height: 1.7;
}
.pwa-install-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.pwa-install-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
}

@media (min-width: 640px) {
    .pwa-install-inner {
        grid-template-columns: auto 1fr auto;
    }
    .pwa-install-logo { grid-row: auto; }
    .pwa-install-actions {
        grid-column: auto;
        flex-direction: column;
        min-width: 140px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .services-grid,
    .footer-grid,
    .contact-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .converter {
        grid-template-columns: 1fr;
    }
    .converter-swap {
        justify-self: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        background: var(--header-bg);
        border-bottom: 1px solid var(--line-soft);
        padding: .75rem 1rem 1rem;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        padding: .85rem .5rem;
        border-bottom: 1px solid var(--line-soft);
        width: 100%;
    }
    .logo-en { font-size: .92rem; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-actions .btn,
    .form-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .container { width: calc(100% - 1.25rem); }
    .contact-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo, .glow { animation: none !important; }
}
