/* ==========================================================================
   Citiwell · promotions and price pages, shared theme «Контраст»
   Deep navy blocks, aqua highlights, coral actions. Everything is scoped to
   .tn-* so the site's header, footer and booking modal keep their own styles.
   Pages are generated by tools/build-offer-pages.py.
   ========================================================================== */
.tn-a {
    --tn-navy: #0b2135;
    --tn-navy-2: #11304b;
    --tn-navy-3: #1b4668;
    --tn-blue: #1d8fbd;
    --tn-blue-dark: #15779e;
    --tn-aqua: #5fd0e3;
    --tn-aqua-soft: #e4f5f9;
    --tn-coral: #ff6b6b;
    --tn-coral-dark: #f04f5a;
    --tn-sun: #ffd36b;
    --tn-ink: #0e2033;
    --tn-text: #30414f;
    --tn-muted: #607282;
    --tn-line: #dce6ed;
    --tn-bg: #f2f6f9;
    --tn-card: #ffffff;
    --tn-ok: #0f9d7a;
    --tn-radius: 22px;
    --tn-radius-sm: 14px;
    --tn-shadow: 0 18px 44px rgba(11, 33, 53, 0.10);
    --tn-shadow-soft: 0 8px 24px rgba(11, 33, 53, 0.07);
    --tn-header-h: 80px;
}

@media (max-width: 1024px) {
    .tn-a { --tn-header-h: 76px; }
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tn-main *, .tn-sticky { transition: none !important; animation: none !important; }
}

/* ---------- base ---------- */
.tn-a .tn-main {
    display: block;
    padding-top: var(--tn-header-h);
    overflow-x: clip;
    background: var(--tn-bg);
    color: var(--tn-text);
    font-family: var(--font-main, 'Manrope', 'Montserrat', sans-serif);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.tn-main h1, .tn-main h2, .tn-main h3, .tn-main h4 {
    margin: 0;
    color: var(--tn-ink);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-align: left;
    text-wrap: balance;
}

.tn-main p { margin: 0; color: inherit; }
.tn-main ul, .tn-main ol, .tn-main dl, .tn-main dd, .tn-main figure { margin: 0; padding: 0; list-style: none; }
.tn-main img { display: block; max-width: 100%; height: auto; }
.tn-main button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tn-main a { -webkit-tap-highlight-color: transparent; }
.tn-main s { text-decoration-thickness: 1.5px; }

.tn-main :focus-visible,
.tn-sticky :focus-visible {
    outline: 3px solid var(--tn-coral);
    outline-offset: 3px;
    border-radius: 8px;
}

.tn-wrap {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.tn-ico {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
}

.tn-num { font-variant-numeric: tabular-nums lining-nums; }

.tn-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body[data-gender="m"] [data-only="f"],
body:not([data-gender="m"]) [data-only="m"] { display: none !important; }

/* ---------- sections ---------- */
.tn-section { padding-block: clamp(56px, 7.5vw, 108px); }
.tn-section--white { background: #fff; }
.tn-section--tint { background: var(--tn-aqua-soft); }

.tn-head {
    display: grid;
    gap: 14px;
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.tn-head h2 { font-size: clamp(1.8rem, 1.15rem + 2.6vw, 3rem); }
.tn-head p { color: var(--tn-muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.175rem); line-height: 1.6; }

.tn-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

@media (min-width: 900px) {
    .tn-head--split { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
    .tn-head--split > .tn-head__copy { display: grid; gap: 14px; max-width: 760px; }
}

.tn-head__copy { display: grid; gap: 14px; }

/* ---------- buttons ---------- */
.tn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tn-btn .tn-ico { width: 1.15em; height: 1.15em; transition: transform 0.18s ease; }
.tn-btn:hover .tn-ico { transform: translateX(3px); }

.tn-main .tn-btn--primary,
.tn-sticky .tn-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tn-coral) 0%, var(--tn-coral-dark) 100%);
    box-shadow: 0 12px 26px rgba(240, 79, 90, 0.34);
}

.tn-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(240, 79, 90, 0.42); }
.tn-btn--primary:active { transform: translateY(0); }

.tn-main .tn-btn--ghost-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.tn-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.tn-btn--ghost-light:hover .tn-ico { transform: translateY(3px); }

.tn-main .tn-btn--outline {
    color: var(--tn-blue-dark);
    background: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(29, 143, 189, 0.45);
}

.tn-btn--outline:hover { background: var(--tn-aqua-soft); }

.tn-main .tn-btn--navy { color: #fff; background: var(--tn-navy); }
.tn-btn--navy:hover { background: var(--tn-navy-2); transform: translateY(-2px); }

.tn-btn--block { width: 100%; }
.tn-btn--sm { min-height: 48px; padding: 0 22px; font-size: 0.95rem; }

/* ---------- gender switch ---------- */
.tn-gender {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #e6edf2;
}

.tn-main .tn-gender__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tn-muted);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tn-gender__btn .tn-ico { width: 1.05em; height: 1.05em; }
.tn-main .tn-gender__btn.is-active { background: var(--tn-blue); color: #fff; box-shadow: 0 6px 16px rgba(29, 143, 189, 0.35); }
.tn-main .tn-gender__btn:not(.is-active):hover { color: var(--tn-ink); }

.tn-gender--dark { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.tn-main .tn-gender--dark .tn-gender__btn { color: rgba(255, 255, 255, 0.76); }
.tn-main .tn-gender--dark .tn-gender__btn.is-active { background: #fff; color: var(--tn-navy); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.tn-main .tn-gender--dark .tn-gender__btn:not(.is-active):hover { color: #fff; }

/* ---------- hero shell ---------- */
.tn-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 112px);
    background:
        radial-gradient(900px 520px at 88% -10%, rgba(95, 208, 227, 0.28), transparent 62%),
        radial-gradient(700px 480px at -8% 108%, rgba(29, 143, 189, 0.34), transparent 60%),
        linear-gradient(160deg, var(--tn-navy) 0%, var(--tn-navy-2) 100%);
    color: #fff;
}

.tn-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    pointer-events: none;
}

.tn-hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 1.35rem + 4.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.tn-hero h1 span { display: block; color: var(--tn-aqua); }
.tn-hero__lead { max-width: 560px; color: rgba(255, 255, 255, 0.8); font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem); line-height: 1.5; }

/* ---------- trust strip ---------- */
.tn-trust {
    position: relative;
    z-index: 2;
    margin-top: clamp(-56px, -5vw, -36px);
}

.tn-trust__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: var(--tn-radius);
    background: var(--tn-line);
    box-shadow: var(--tn-shadow);
}

.tn-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: #fff;
}

.tn-trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tn-trust__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--tn-aqua-soft);
    color: var(--tn-blue);
}

.tn-trust__icon--star { background: #fff6dc; color: #f2a900; }
.tn-trust__text strong { display: block; color: var(--tn-ink); font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.tn-trust__text span { display: block; color: var(--tn-muted); font-size: 0.85rem; line-height: 1.3; }

@media (min-width: 720px) {
    .tn-trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tn-trust__item:last-child:nth-child(odd) { grid-column: auto; }
    .tn-trust__item:nth-child(4), .tn-trust__item:nth-child(5) { grid-column: span 1; }
}

@media (min-width: 1100px) {
    .tn-trust__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tn-trust__item { padding: 22px 20px; }
}

/* ---------- FAQ ---------- */
.tn-faq { display: grid; gap: clamp(28px, 4vw, 56px); }

@media (min-width: 960px) {
    .tn-faq { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
    .tn-faq__aside { position: sticky; top: calc(var(--tn-header-h) + 28px); }
}

.tn-faq__aside { display: grid; gap: 18px; }

@media (max-width: 959px) {
    /* phones: questions first, the contact card after them */
    .tn-faq { gap: 18px; }
    .tn-faq__aside { display: contents; }
    .tn-faq__list { order: 1; margin-top: 8px; }
    .tn-faq .tn-contact { order: 2; margin-top: 10px; }
}
.tn-faq__aside h2 { font-size: clamp(1.8rem, 1.15rem + 2.6vw, 3rem); }
.tn-faq__aside h3 { font-size: 1.2rem; line-height: 1.3; color: var(--tn-blue-dark); letter-spacing: -0.01em; }
.tn-faq__aside > p { color: var(--tn-muted); line-height: 1.6; }

.tn-faq__list { display: grid; gap: 12px; }

.tn-faq__item {
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--tn-line);
    transition: box-shadow 0.18s ease;
}

.tn-faq__item[open] { box-shadow: inset 0 0 0 1.5px rgba(29, 143, 189, 0.5), var(--tn-shadow-soft); }

.tn-faq__item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px;
    color: var(--tn-ink);
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.tn-faq__item summary::-webkit-details-marker { display: none; }
.tn-faq__item summary span { flex: 1 1 auto; }

.tn-faq__toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tn-aqua-soft);
    color: var(--tn-blue-dark);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tn-faq__item[open] .tn-faq__toggle { transform: rotate(45deg); background: var(--tn-blue); color: #fff; }
.tn-faq__answer { padding: 0 20px 22px; color: var(--tn-text); line-height: 1.65; }

@media (min-width: 720px) {
    .tn-faq__item summary { padding: 22px 26px; font-size: 1.1rem; }
    .tn-faq__answer { padding: 0 76px 24px 26px; }
}

/* ---------- contact card ---------- */
.tn-contact {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: var(--tn-radius);
    background: var(--tn-navy);
    color: rgba(255, 255, 255, 0.82);
}

.tn-main .tn-contact h3 { color: #fff; font-size: 1.3rem; letter-spacing: -0.015em; }
.tn-contact__hours { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.tn-contact__hours .tn-ico { color: var(--tn-aqua); width: 22px; height: 22px; }
.tn-contact__hours strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 800; }

/* ---------- closing call ---------- */
.tn-final { padding-block: 0 clamp(56px, 7.5vw, 108px); background: #fff; }

.tn-final__card {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 22px;
    justify-items: start;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px);
    border-radius: clamp(24px, 3vw, 36px);
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(95, 208, 227, 0.32), transparent 65%),
        linear-gradient(135deg, var(--tn-navy) 0%, var(--tn-navy-3) 100%);
    color: rgba(255, 255, 255, 0.82);
}

.tn-main .tn-final__card h2 { color: #fff; font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.1rem); max-width: 720px; }
.tn-final__card p { max-width: 560px; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem); }
.tn-final__note { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.tn-final__note .tn-ico { color: var(--tn-aqua); }

.tn-final__sticker {
    position: absolute;
    top: clamp(-30px, -2vw, -14px);
    right: clamp(-24px, 1vw, 40px);
    z-index: -1;
    display: grid;
    place-items: center;
    width: clamp(150px, 22vw, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.16);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    transform: rotate(-10deg);
}

@media (max-width: 719px) {
    .tn-final__card .tn-btn { width: 100%; }
}

/* ---------- sticky mobile call-to-action ---------- */
.tn-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 33, 53, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(11, 33, 53, 0.22);
    color: #fff;
    font-family: var(--font-main, 'Manrope', sans-serif);
    transform: translateY(110%);
    transition: transform 0.28s ease;
}

.tn-sticky.is-visible { transform: translateY(0); }
.tn-sticky__text { flex: 1 1 auto; min-width: 0; font-size: 0.82rem; line-height: 1.25; color: rgba(255, 255, 255, 0.74); }
.tn-sticky__text strong { display: block; color: #fff; font-size: 1rem; font-weight: 800; }
.tn-sticky .tn-btn { min-height: 48px; padding: 0 22px; font-size: 0.95rem; flex: 0 0 auto; border: 0; cursor: pointer; font-family: inherit; }

@media (min-width: 900px) {
    .tn-sticky { display: none; }
}

/* Serbia: the women/men switch on the smallest phones (the labels are longer in SR and RU) */
@media (max-width: 359px) {
    .tn-main .tn-gender__btn { gap: 6px; padding: 0 12px; font-size: 0.86rem; }
}

/* Serbia: the strip under the promotions hero repeats the four indicators of the home page
   (K-21, -5 °C, 3 languages, 09-22): two by two on phones and tablets, one row on wide screens */
.tn-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tn-trust__text strong { white-space: nowrap; }

@media (min-width: 960px) {
    .tn-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
