/* ==========================================================================
   Citiwell · "nearest studio" pages for towns without a Citiwell studio (ME / RU / EN).
   Built by tools/build-city-pages.py. Uses the shared theme /assets/css/offer-theme.css
   (navy, aqua, coral), the same one as the promotions, price and after-care pages.
   The first screen answers one question: where is the nearest studio and how far is it.
   ========================================================================== */

/* ---------- hero ---------- */
.tn-main .cy-hero { padding-block: clamp(28px, 4vw, 64px) clamp(36px, 5vw, 72px); }
.cy-hero__grid { position: relative; z-index: 1; display: grid; gap: 22px; }
.cy-hero__copy { display: grid; gap: 14px; align-content: start; }
.cy-hero__tag { justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(95, 208, 227, 0.16); color: var(--tn-aqua); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.03em; }
.tn-main .cy-hero h1 { color: #fff; font-size: clamp(1.8rem, 0.8rem + 5vw, 3.3rem); line-height: 1.06; }
.cy-hero .tn-hero__lead { max-width: 600px; }

.cy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cy-actions .messenger-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tn-main .cy-actions .btn-messenger { min-height: 50px; }
.tn-main .cy-link-light { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.tn-main .cy-link-light:hover { background: rgba(255, 255, 255, 0.12); }

/* The nearest studio, as a card a phone user sees without scrolling. */
.cy-studio {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 20px;
    border-radius: var(--tn-radius);
    background: #fff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
    color: var(--tn-text);
}
.cy-studio__label { color: var(--tn-blue-dark); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tn-main .cy-studio h2 { color: var(--tn-ink); font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem); }
.cy-facts { display: grid; gap: 10px; }
.cy-facts div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.cy-facts .tn-ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--tn-blue); }
.cy-facts dt { color: var(--tn-muted); font-size: 0.82rem; font-weight: 700; }
.cy-facts dd { color: var(--tn-ink); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.cy-facts dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--tn-line); }
.cy-facts dd a:hover { border-bottom-color: var(--tn-blue); }
.tn-main .cy-route-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--tn-aqua-soft); color: var(--tn-blue-dark); font-weight: 800; text-decoration: none; }
.tn-main .cy-route-btn:hover { background: #d3eef5; }

@media (min-width: 900px) {
    .cy-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; }
    .cy-studio { padding: 26px; }
}

/* ---------- getting there ---------- */
.cy-ways { display: grid; gap: 14px; }
.cy-way { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--tn-radius); background: var(--tn-card); box-shadow: var(--tn-shadow-soft); }
.cy-way__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tn-aqua-soft); color: var(--tn-blue-dark); }
.cy-way__icon .tn-ico { width: 24px; height: 24px; }
.tn-main .cy-way h3 { font-size: 1.2rem; }
.cy-way p { color: var(--tn-muted); }
.cy-places { margin-top: 18px; color: var(--tn-muted); }
.cy-places strong { color: var(--tn-ink); }

@media (min-width: 760px) {
    .cy-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- planning the course ---------- */
.cy-steps { display: grid; gap: 14px; counter-reset: cy-step; }
.cy-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: var(--tn-radius); background: var(--tn-bg); }
.cy-step__no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tn-navy); color: #fff; font-weight: 800; }
.tn-main .cy-step h3 { margin-bottom: 6px; font-size: 1.15rem; }
.cy-step p { color: var(--tn-muted); }

@media (min-width: 900px) {
    .cy-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cy-step { grid-template-columns: 1fr; }
}

/* ---------- prices ---------- */
.cy-prices { display: grid; gap: 14px; }
.cy-price { display: grid; gap: 6px; padding: 20px; border-radius: var(--tn-radius); background: var(--tn-card); box-shadow: var(--tn-shadow-soft); }
.cy-price__name { color: var(--tn-muted); font-weight: 700; }
.cy-price__value { color: var(--tn-ink); font-size: 1.6rem; font-weight: 800; }
.cy-price__note { color: var(--tn-muted); font-size: 0.95rem; }
.cy-price__note strong { color: #b23a3f; }
.cy-prices__more { margin-top: 18px; }

@media (min-width: 760px) {
    .cy-prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- other studios nearby ---------- */
.cy-alts { display: grid; gap: 14px; }
.cy-alt { display: grid; gap: 6px; padding: 20px; border-radius: var(--tn-radius); background: var(--tn-bg); color: inherit; text-decoration: none; transition: box-shadow 0.18s ease, transform 0.18s ease; }
.cy-alt:hover { box-shadow: var(--tn-shadow-soft); transform: translateY(-2px); }
.cy-alt strong { color: var(--tn-ink); font-size: 1.1rem; }
.cy-alt span { color: var(--tn-muted); }
.cy-alt em { color: var(--tn-blue-dark); font-style: normal; font-weight: 700; }

@media (min-width: 760px) {
    .cy-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- questions ---------- */
.cy-faq { display: grid; gap: 10px; max-width: 860px; }
.cy-q { border-radius: var(--tn-radius-sm); background: var(--tn-card); box-shadow: var(--tn-shadow-soft); }
.cy-q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; color: var(--tn-ink); font-weight: 800; cursor: pointer; list-style: none; }
.cy-q summary::-webkit-details-marker { display: none; }
.cy-q summary .tn-ico { color: var(--tn-blue); transition: transform 0.18s ease; }
.cy-q[open] summary .tn-ico { transform: rotate(180deg); }
.cy-q p { padding: 0 20px 18px; color: var(--tn-muted); }

/* ---------- closing call to action ---------- */
.cy-cta { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); padding: clamp(22px, 3vw, 34px); border-radius: var(--tn-radius); background: var(--tn-navy); color: rgba(255, 255, 255, 0.82); }
.tn-main .cy-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.cy-note { margin-top: 18px; color: var(--tn-muted); font-size: 0.9rem; }
