/* ==========================================================================
   Citiwell · after-care page (ME / RU / EN). Mobile first.
   Built from the design the owner approved in test-new/aftercare.html.
   Uses the shared theme /assets/css/offer-theme.css (navy, aqua, coral).
   One idea leads the page: the first day is about not heating and not rubbing;
   everything else comes back as soon as the skin calms down.
   ========================================================================== */

/* ---------- hero ---------- */
.tn-main .ac-hero { padding-block: clamp(28px, 4vw, 64px) clamp(36px, 5vw, 72px); }
.ac-hero__grid { display: grid; gap: 20px; }
.ac-hero__copy { display: grid; gap: 14px; }
.tn-main .ac-hero h1 { font-size: clamp(1.8rem, 0.75rem + 5.4vw, 3.4rem); line-height: 1.04; }
.ac-hero .tn-hero__lead { max-width: 520px; }

.ac-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 40%; border-radius: 22px; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34); }

/* The key rule. On a phone it overlaps the photo, so the first screen already answers "what now?". */
.ac-key {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon tag" "title title" "text text";
    gap: 10px 12px;
    align-items: center;
    margin: -64px 10px 0;
    padding: 18px 18px 20px;
    border-radius: var(--tn-radius);
    background: #fff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
    color: var(--tn-text);
}

.ac-key__icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--tn-aqua), var(--tn-blue)); box-shadow: 0 10px 22px rgba(29, 143, 189, 0.32); color: #fff; }
.ac-key__icon .tn-ico { width: 24px; height: 24px; }
.ac-key__tag { grid-area: tag; justify-self: start; padding: 5px 11px; border-radius: 999px; background: var(--tn-aqua-soft); color: var(--tn-blue-dark); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; }
.tn-main .ac-key h2 { grid-area: title; color: var(--tn-ink); font-size: clamp(1.4rem, 1.02rem + 1.7vw, 2rem); line-height: 1.12; }
.ac-key__list { grid-area: text; display: grid; gap: 7px; }
.ac-key__list li { position: relative; padding-left: 18px; color: var(--tn-muted); font-size: 1rem; line-height: 1.35; }
.ac-key__list li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--tn-aqua); }

@media (min-width: 720px) {
    .ac-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: "copy media" "key media"; column-gap: clamp(24px, 4vw, 64px); row-gap: 24px; align-items: stretch; }
    .tn-main .ac-hero h1 { font-size: clamp(2.3rem, 0.2rem + 4.6vw, 3.9rem); }
    .ac-hero__copy { grid-area: copy; align-self: end; }
    .ac-hero__media { grid-area: media; display: flex; }
    .ac-hero__media img { width: 100%; height: 100%; min-height: 320px; aspect-ratio: auto; object-position: 62% 38%; border-radius: clamp(22px, 3vw, 36px); }
    .ac-key { grid-area: key; align-self: start; margin: 0; }
}

@media (min-width: 1000px) {
    .ac-key { grid-template-areas: "icon tag" "icon title" "icon text"; gap: 8px 18px; align-items: start; padding: 26px; }
    .ac-key__icon { width: 56px; height: 56px; border-radius: 18px; }
    .ac-key__icon .tn-ico { width: 30px; height: 30px; }
}

/* ---------- this is normal ---------- */
.ac-normal { padding-block: clamp(26px, 4vw, 44px); background: #fff; box-shadow: 0 1px 0 var(--tn-line); }
.tn-main .ac-normal__title { margin-bottom: 14px; color: var(--tn-muted); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ac-normal__list { display: grid; gap: 10px; }
.ac-normal__item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--tn-radius-sm); background: var(--tn-bg); color: var(--tn-muted); font-size: 0.92rem; line-height: 1.4; }
.ac-normal__item .tn-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--tn-blue); }
.ac-normal__item strong { display: block; color: var(--tn-ink); font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.ac-normal__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px !important; color: var(--tn-muted); font-size: 0.92rem; line-height: 1.45; }
.ac-normal__note .tn-ico { width: 20px; height: 20px; margin-top: 2px; color: var(--tn-blue); }

@media (min-width: 860px) {
    .ac-normal__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- the first day ---------- */
.ac-cards { display: grid; gap: 14px; }

.ac-card { display: grid; gap: 8px; align-content: start; padding: 20px 18px 22px; border-radius: var(--tn-radius); background: #fff; box-shadow: var(--tn-shadow-soft); }
.ac-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 15px; background: var(--tn-aqua-soft); color: var(--tn-blue-dark); }
.ac-card__icon .tn-ico { width: 24px; height: 24px; }
.tn-main .ac-card h3 { font-size: 1.15rem; line-height: 1.25; }
.ac-card p { color: var(--tn-muted); font-size: 0.97rem; line-height: 1.5; }

.ac-today__note { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px !important; padding: 16px 18px; border-radius: var(--tn-radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--tn-line); color: var(--tn-text); font-size: 0.97rem; line-height: 1.5; }
.ac-today__note .tn-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--tn-coral); }

@media (min-width: 700px) {
    .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    /* an odd last card would leave a hole next to it, so it takes the whole row */
    .ac-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
    .ac-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
    .ac-cards > li:last-child:nth-child(odd) { grid-column: auto; }
    .ac-card { padding: 20px 16px 22px; }
}

/* ---------- when each habit comes back ---------- */
.ac-when__grid { display: grid; gap: 16px; }

.ac-group { display: grid; gap: 6px; align-content: start; padding: 20px 18px 22px; border-radius: var(--tn-radius); background: var(--tn-bg); }
.tn-main .ac-group__chip { justify-self: start; padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 800; line-height: 1.15; }
.ac-group__hint { margin-bottom: 8px !important; color: var(--tn-muted); font-size: 0.88rem; line-height: 1.4; }
.ac-group__list { display: grid; gap: 12px; }
.ac-group__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--tn-muted); font-size: 0.92rem; line-height: 1.4; }
.ac-group__list strong { display: block; color: var(--tn-ink); font-size: 1.02rem; font-weight: 750; line-height: 1.3; }
.ac-group__list .tn-ico { width: 34px; height: 34px; flex: 0 0 auto; padding: 7px; border-radius: 11px; background: #fff; }

.ac-group--soon .ac-group__chip { background: var(--tn-aqua-soft); color: var(--tn-blue-dark); }
.ac-group--soon .ac-group__list .tn-ico { color: var(--tn-blue); }
.ac-group--calm .ac-group__chip { background: #dff5ec; color: #0b7a5c; }
.ac-group--calm .ac-group__list .tn-ico { color: #0f9d7a; }
.ac-group--never { background: #fff3f2; }
.ac-group--never .ac-group__chip { background: #ffe0dd; color: var(--tn-coral-dark); }
.ac-group--never .ac-group__list .tn-ico { color: var(--tn-coral-dark); }

/* tablet and small laptop: the label stands to the left of its list, so the card is not half empty */
@media (min-width: 620px) and (max-width: 1149px) {
    .ac-group { grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 4vw, 44px); align-items: start; padding: 22px 24px; }
    .tn-main .ac-group__chip { grid-column: 1; grid-row: 1; }
    .ac-group__hint { grid-column: 1; grid-row: 2; margin-bottom: 0 !important; }
    .ac-group__list { grid-column: 2; grid-row: 1 / span 3; }
}

@media (min-width: 1150px) {
    .ac-when__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .ac-group { padding: 24px 22px 26px; }
    .ac-group__list .tn-ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; }
}

@media (min-width: 1300px) {
    .ac-group__list .tn-ico { width: 34px; height: 34px; padding: 7px; border-radius: 11px; }
}

/* ---------- how the hair goes ---------- */
.ac-hair__steps { display: grid; gap: 14px; }

.ac-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: var(--tn-radius); background: #fff; box-shadow: var(--tn-shadow-soft); }
.ac-step__no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tn-navy); color: #fff; font-size: 0.98rem; font-weight: 800; }
.tn-main .ac-step h3 { margin-bottom: 4px; font-size: 1.1rem; line-height: 1.25; }
.ac-step p { color: var(--tn-muted); font-size: 0.97rem; line-height: 1.5; }

.ac-note { display: grid; gap: 8px; margin-top: 18px; padding: clamp(20px, 3vw, 28px); border-radius: var(--tn-radius); background: var(--tn-aqua-soft); }
.tn-main .ac-note h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); }
.ac-note p { color: var(--tn-text); font-size: 0.99rem; line-height: 1.55; }
.ac-note strong { color: var(--tn-ink); font-weight: 800; }

@media (min-width: 820px) {
    .ac-hair__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .ac-step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 20px 24px; }
}

/* ---------- write to us ---------- */
.ac-write { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 4vw, 44px); border-radius: var(--tn-radius); background: linear-gradient(165deg, var(--tn-navy) 0%, var(--tn-navy-2) 100%); color: rgba(255, 255, 255, 0.82); }
.tn-main .ac-write h2 { color: #fff; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); }
.ac-write__list { display: grid; gap: 12px; width: 100%; }
.ac-write__list li { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-size: 1.03rem; font-weight: 650; line-height: 1.4; }
.ac-write__list .tn-ico { width: 22px; height: 22px; margin-top: 1px; color: var(--tn-sun); }
.ac-write__note { max-width: 620px; font-size: 0.95rem; line-height: 1.55; }

/* WhatsApp and Viber: the site's own buttons (style.min.css colours them, /script.js counts the click) */
.tn-main .ac-channels { gap: 12px; width: 100%; max-width: 460px; margin-bottom: 0; }
.tn-main .ac-channels .btn-messenger { min-height: 56px; padding: 14px; border-radius: 14px; font-size: 1.05rem; }
.tn-main .ac-channels .btn-messenger i { font-size: 21px; }
.tn-main .ac-channels .btn-messenger:hover { transform: translateY(-2px); }

@media (min-width: 900px) {
    .ac-write { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; column-gap: clamp(36px, 4vw, 64px); }
    .tn-main .ac-write h2 { grid-column: 1; grid-row: 1; }
    .ac-write__list { grid-column: 1; grid-row: 2; }
    .ac-write__note { grid-column: 2; grid-row: 1; margin-top: 4px; }
    .tn-main .ac-write .ac-channels { grid-column: 2; grid-row: 2; align-self: start; }
}

/* ---------- questions ---------- */
.ac-faq__list { display: grid; gap: 10px; max-width: 860px; }

@media (min-width: 1000px) {
    /* heading on the left, questions on the right: the wide screen stays filled and the list keeps one column */
    .ac-faq .tn-wrap { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.55fr); column-gap: clamp(40px, 5vw, 72px); align-items: start; }
    .ac-faq .tn-head { position: sticky; top: calc(var(--tn-header-h) + 28px); margin-bottom: 0; }
    .ac-faq__list { max-width: none; }
}

.ac-q { border-radius: var(--tn-radius-sm); background: #fff; box-shadow: var(--tn-shadow-soft); }
.ac-q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 14px 18px; color: var(--tn-ink); font-size: 1.02rem; font-weight: 750; line-height: 1.35; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.ac-q summary::-webkit-details-marker { display: none; }
.ac-q summary .tn-ico { width: 22px; height: 22px; color: var(--tn-blue); transition: transform 0.18s ease; }
.ac-q[open] summary { padding-bottom: 6px; }
.ac-q[open] summary .tn-ico { transform: rotate(180deg); }
.ac-q p { padding: 0 18px 18px; color: var(--tn-muted); font-size: 0.99rem; line-height: 1.6; }

@media (min-width: 760px) {
    .ac-q summary { padding: 16px 22px; font-size: 1.08rem; }
    .ac-q p { padding: 0 22px 20px; }
}

/* ---------- what is next ---------- */
.tn-main .ac-next__title { margin-bottom: clamp(18px, 3vw, 28px); font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
.ac-next__grid { display: grid; gap: 16px; }

@media (min-width: 900px) {
    .ac-next__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.ac-next__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; overflow: hidden; padding-right: 16px; border-radius: var(--tn-radius); background: var(--tn-bg); box-shadow: inset 0 0 0 1px var(--tn-line); color: var(--tn-muted); font-size: 0.92rem; line-height: 1.4; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ac-next__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(29, 143, 189, 0.5), var(--tn-shadow-soft); }
.ac-next__card img { width: 112px; height: 100%; min-height: 104px; object-fit: cover; }
.ac-next__card span { position: relative; display: block; padding: 14px 28px 14px 0; }
.ac-next__card strong { display: block; margin-bottom: 4px; color: var(--tn-ink); font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.ac-next__card .tn-ico { position: absolute; top: 50%; right: 0; width: 20px; height: 20px; color: var(--tn-blue); transform: translateY(-50%); }

@media (min-width: 620px) {
    .ac-next__card { grid-template-columns: 168px minmax(0, 1fr); }
    .ac-next__card img { width: 168px; min-height: 128px; }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .ac-next__card { grid-template-columns: 128px minmax(0, 1fr); }
    .ac-next__card img { width: 128px; min-height: 120px; }
}

/* ---------- next visit ---------- */
.ac-cta { display: grid; gap: 18px; margin-top: clamp(22px, 3.5vw, 36px); padding: clamp(22px, 3.2vw, 36px); border-radius: var(--tn-radius); background: radial-gradient(420px 220px at 100% 0%, rgba(255, 107, 107, 0.16), transparent 70%), var(--tn-aqua-soft); }
.ac-cta__copy { display: grid; gap: 8px; }
.tn-main .ac-cta h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); }
.ac-cta p { color: var(--tn-text); font-size: 1.02rem; line-height: 1.5; }

@media (min-width: 900px) {
    .ac-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
    .tn-main .ac-cta .ac-channels { width: 420px; }
}

.ac-disclaimer { margin-top: clamp(24px, 4vw, 40px) !important; color: var(--tn-muted); font-size: 0.88rem; line-height: 1.55; }
