/* ==========================================================================
   Blog articles (ru/blog/…): same colours and fonts as the site (style.css),
   header and footer from legal.css
   ========================================================================== */
.blog-head-cta { flex: none; }

.article { max-width: 780px; padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.5rem, 6vw, 4.5rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.8rem; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--wine); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.12; color: var(--wine); }
.article-meta { margin: .8rem 0 1.8rem; font-size: .9rem; font-style: italic; color: var(--muted); }
.article p, .article li { color: var(--ink-soft); line-height: 1.75; }
.article strong { color: var(--ink); font-weight: 600; }
.article a:not(.btn) { color: var(--wine); font-weight: 600; text-underline-offset: 3px; }

/* the photo header of an article: a photo under a colour wash, like the speaking club cards */
.article-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(330px, 46vw, 450px); margin: 0 0 2rem; padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 20px; background: var(--wine-deep); box-shadow: 0 26px 50px -30px rgba(58, 42, 39, .65);
}
.article-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.85); }
.article-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(122, 46, 60, .48) 0%, rgba(104, 37, 50, .62) 42%, rgba(91, 31, 43, .93) 100%); }
.article-hero.is-brown { background: #33241E; }
.article-hero.is-brown::before { background: linear-gradient(180deg, rgba(68, 47, 38, .45) 0%, rgba(60, 42, 34, .6) 42%, rgba(51, 36, 30, .93) 100%); }
.article-hero::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(224, 197, 142, .6); border-radius: 14px; pointer-events: none; }
.article .article-hero-tag {
  position: absolute; top: clamp(1.4rem, 3.5vw, 2rem); left: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(247, 240, 230, .14); border: 1px solid rgba(224, 197, 142, .55);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
}
.article .article-hero h1 { margin: 3rem 0 0; color: var(--ivory); }
.article .article-hero-meta { margin: .8rem 0 0; font-size: .9rem; font-style: italic; color: rgba(247, 240, 230, .82); }

/* the short answer at the top (what search engines often quote) */
.article-lead {
  margin: 0 0 2rem; padding: 1.3rem 1.5rem;
  border-radius: 16px; border: 1.5px solid var(--gold); background: var(--card); box-shadow: var(--frame);
  font-size: 1.08rem;
}


.toc { margin: 0 0 2.5rem; padding: 1.3rem 1.5rem 1.1rem; border-radius: 16px; background: var(--ivory-2); }
.toc-title { margin: 0 0 .6rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .35rem; break-inside: avoid; line-height: 1.45; }
.toc li::marker { color: var(--gold); font-weight: 600; }
.toc a:not(.btn) { font-weight: 500; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article h2 { margin: 2.8rem 0 .9rem; font-size: clamp(1.5rem, 3.4vw, 1.9rem); line-height: 1.2; color: var(--ink); scroll-margin-top: 1.2rem; }
.article h3 { margin: 1.8rem 0 .5rem; font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; line-height: 1.35; color: var(--wine); }
.article ul, .article ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article li { margin-bottom: .55rem; }
.article li::marker { color: var(--gold); }

.steps li::marker { font-weight: 600; }

.note { margin: 1.2rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--primary-tint); }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .12rem;
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--wine); color: var(--ivory); font-size: .78rem; font-weight: 700; line-height: 1;
}

/* tables */
.table-wrap { margin: 0 0 1.4rem; overflow-x: auto; border-radius: 14px; border: 1.5px solid var(--gold); background: var(--card); }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.article th, .article td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.article tr:last-child > * { border-bottom: 0; }
.article thead th { background: var(--wine); color: var(--ivory); font-weight: 600; border-bottom: 0; }
.article tbody th[scope="row"] { color: var(--ink); font-weight: 600; white-space: nowrap; }
.phrases td:first-child { color: var(--ink); font-weight: 600; }
.phrases .group th { padding-top: 1rem; background: var(--ivory-2); color: var(--wine); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* the school's clubs */
.article-cta {
  margin: 3rem 0 1rem; padding: clamp(1.5rem, 4vw, 2.2rem);
  border-radius: 20px; background: radial-gradient(120% 120% at 15% 0%, #93404E, var(--wine-deep) 75%);
  box-shadow: inset 0 0 0 6px var(--wine-deep), inset 0 0 0 7px rgba(224, 197, 142, .55);
}
.article-cta .kicker { color: var(--gold-light); }
.article-cta h2 { margin: 0 0 1rem; color: var(--ivory); }
.article-cta p, .article-cta li { color: rgba(247, 240, 230, .88); }
.article-cta strong { color: var(--ivory); }
.article-cta li::marker { color: var(--gold-light); }
.article-cta-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.article-cta .btn-primary { --b-bg: var(--ivory); --b-fg: var(--wine-deep); --b-bd: var(--ivory); }
.article-cta .btn-primary:hover { --b-bg: var(--gold-light); --b-bd: var(--gold-light); }
.article-cta .btn-ghost { --b-fg: var(--ivory); --b-bd: var(--gold-light); }
.article-cta .btn-ghost:hover { --b-bg: rgba(224, 197, 142, .15); }

.article-faq h3 { margin-top: 1.5rem; color: var(--ink); }
.article-faq p { margin-top: 0; }



/* calculator (blog.js, data-calc="levels") */
.calc {
  margin: 1.2rem 0 1rem; padding: clamp(1.2rem, 3.5vw, 1.8rem);
  border-radius: 18px; border: 1.5px solid var(--gold); background: var(--card); box-shadow: var(--frame);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.calc-field { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.calc-field select {
  appearance: none; width: 100%; padding: .7rem 2.2rem .7rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A2E3C' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right .9rem center;
  font: 500 .98rem var(--font-body); color: var(--ink); cursor: pointer;
}
.calc-field select:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.calc-seg { margin: 0 0 1rem; padding: 0; border: 0; }
.calc-seg legend { margin-bottom: .45rem; padding: 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.calc-seg-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.calc-seg label { position: relative; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-seg span {
  display: inline-grid; place-items: center; min-width: 3.2rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--gold); background: var(--ivory); font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color .2s, color .2s, border-color .2s;
}
.calc-seg input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.calc-seg input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.calc-seg label:hover input:not(:checked) + span { background: var(--primary-tint); }
.calc-result { margin: 1.3rem 0 0; padding: 1.1rem 1.3rem; border-radius: 14px; background: radial-gradient(120% 120% at 15% 0%, #93404E, var(--wine-deep) 75%); }
.article .calc-result p { margin: 0; color: rgba(247, 240, 230, .88); }
.article .calc-result .calc-result-label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.article .calc-result .calc-big { margin: .15rem 0 .35rem; font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.1; color: var(--ivory); }
.article .calc-result .calc-sub { font-size: .92rem; line-height: 1.55; }
.calc-compare { margin-top: 1.2rem; }
.article .calc-compare-title { margin: 0 0 .6rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.calc-bar { display: grid; grid-template-columns: 5.2rem 1fr 6.6rem; align-items: center; gap: .7rem; margin-bottom: .45rem; font-size: .88rem; color: var(--ink-soft); }
.calc-bar-track { height: 10px; border-radius: 999px; background: var(--ivory-2); overflow: hidden; }
.calc-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .35s var(--ease); }
.calc-bar-time { text-align: right; }
.calc-bar.is-current { font-weight: 600; color: var(--wine); }
.calc-bar.is-current .calc-bar-fill { background: var(--wine); }
.calc-note { font-size: .9rem; }

/* mini-test (blog.js, data-quiz) */
.quiz { margin: 1.2rem 0 1.4rem; padding: clamp(1.2rem, 3.5vw, 1.8rem); border-radius: 18px; border: 1.5px solid var(--gold); background: var(--card); box-shadow: var(--frame); }
.quiz-q { margin: 0 0 1.4rem; padding: 0; border: 0; }
.quiz-q legend { margin-bottom: .6rem; padding: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.quiz-opts { display: grid; gap: .5rem; }
.quiz-opts label { position: relative; display: block; cursor: pointer; }
.quiz-opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.quiz-opts span {
  position: relative; display: block; padding: .7rem 1rem .7rem 2.65rem; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--ivory);
  font-size: .95rem; line-height: 1.4; color: var(--ink-soft); transition: border-color .2s, background-color .2s;
}
.quiz-opts span::before {
  content: ""; position: absolute; left: .9rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem;
  border-radius: 50%; border: 1.5px solid var(--gold); background: var(--card);
}
.quiz-opts label:hover input:not(:checked) + span { border-color: var(--gold); }
.quiz-opts input:checked + span { border-color: var(--wine); background: var(--primary-tint); color: var(--ink); }
.quiz-opts input:checked + span::before { border-color: var(--wine); background: radial-gradient(circle, var(--wine) 0 42%, var(--card) 47%); }
.quiz-opts input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.article .quiz-hint { margin: 0; font-size: .9rem; font-style: italic; color: var(--muted); }
.quiz-hint[hidden], .quiz-result[hidden], .quiz-again[hidden] { display: none; }
.quiz-result { padding: 1.25rem 1.35rem; border-radius: 14px; background: radial-gradient(120% 120% at 15% 0%, #93404E, var(--wine-deep) 75%); }
.article .quiz-result p { margin: 0 0 .9rem; color: rgba(247, 240, 230, .88); }
.article .quiz-result .quiz-result-label { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.article .quiz-result .quiz-result-title { margin: .15rem 0 .5rem; font-family: var(--font-display); font-size: clamp(1.45rem, 4vw, 1.8rem); line-height: 1.15; color: var(--ivory); }
.quiz-result-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.quiz-result .btn-primary { --b-bg: var(--ivory); --b-fg: var(--wine-deep); --b-bd: var(--ivory); }
.quiz-result .btn-primary:hover { --b-bg: var(--gold-light); --b-bd: var(--gold-light); }
.quiz-result .btn-ghost { --b-fg: var(--ivory); --b-bd: var(--gold-light); }
.quiz-again { margin: .9rem 0 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--wine); font: 600 .9rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; }

/* sample tasks with a blurred answer (blog.js, data-reveal) */
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1.1rem 0 1.5rem; }
.sample {
  display: flex; flex-direction: column; padding: 1.1rem 1.15rem 1.15rem; border-radius: 16px;
  border: 1.5px solid var(--gold); background: var(--card); box-shadow: var(--frame);
}
.article .sample p { margin: 0; }
.article .sample .sample-level { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.article .sample .sample-task { margin-top: .45rem; font-size: .92rem; color: var(--ink-soft); }
.article .sample .sample-en { margin: .45rem 0 .9rem; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; color: var(--wine); }
.sample-btn {
  align-self: flex-start; margin-top: auto; padding: .45rem .95rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(191, 149, 80, .75); background: transparent; color: var(--wine); font: 600 .84rem var(--font-body);
}
.sample-btn:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.sample-btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.article .sample .sample-answer {
  margin-top: .75rem; padding: .65rem .8rem; border-radius: 10px; background: var(--primary-tint);
  font-size: .88rem; line-height: 1.45; color: var(--ink-soft);
  filter: blur(5px); user-select: none; transition: filter .35s var(--ease);
}
.article .sample .sample-answer.is-shown { filter: none; user-select: auto; }
@media (max-width: 760px) {
  .samples { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .article .sample .sample-answer { transition: none; }
}

/* weekly plan with checkboxes (blog.js, data-checklist) */
.week { margin: 1rem 0 1.4rem; padding: 1rem 1.2rem; border-radius: 16px; border: 1.5px solid var(--gold); background: var(--card); }
.week ul { list-style: none; margin: 0; padding: 0; }
.week li { margin: 0; border-bottom: 1px solid var(--line); }
.week li:last-child { border-bottom: 0; }
.week label { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0; cursor: pointer; }
.week input {
  appearance: none; flex: none; width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; border-radius: 50%;
  border: 1.5px solid var(--gold); background: var(--ivory); display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.week input::after { content: "✓"; font-size: .78rem; font-weight: 700; line-height: 1; color: var(--ivory); opacity: 0; }
.week input:checked { background: var(--wine); border-color: var(--wine); }
.week input:checked::after { opacity: 1; }
.week input:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.week input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(122, 46, 60, .45); }
.article .week-progress { margin: .6rem 0 0; font-size: .88rem; font-weight: 600; color: var(--wine); }
.week.is-done { border-color: var(--wine); }


/* other articles, at the end of an article: the same photo cards as on the blog page */
.related { margin-top: 3.5rem; }
.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.2rem; }
.article .related-head h2 { margin: 0; }
.article a.related-all { font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(122, 46, 60, .35); }
.article a.related-all:hover { border-bottom-color: var(--wine); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.related-grid .bcard { min-height: 380px; }
.article .bcard a.bcard-link { color: inherit; font-weight: 400; }
.article .bcard p, .article .bcard li { line-height: 1.55; }

/* the blog page (ru/blog/) */
.blog-hub { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(3rem, 7vw, 5rem); }
.blog-hub-head { max-width: 46rem; margin-bottom: 2.4rem; }
.blog-hub h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.12; color: var(--wine); }
.blog-hub .lead { margin: .9rem 0 0; }

/* page not found (404.html) */
.not-found { max-width: 640px; padding-block: clamp(3rem, 9vw, 6rem); text-align: center; }
.not-found-code { margin: 0; font-family: var(--font-display); font-size: clamp(4.5rem, 16vw, 7.5rem); line-height: 1; color: var(--gold); }
.not-found h1 { margin: .4rem 0 .8rem; font-size: clamp(2rem, 5vw, 2.6rem); color: var(--wine); }
.not-found p { color: var(--ink-soft); }
.not-found-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.6rem 0 0; }
.not-found-en { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(191, 149, 80, .45); }
.not-found-en h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.not-found-en a { color: var(--wine); font-weight: 600; text-underline-offset: 3px; }

/* lesson vs club on a phone: the row name on top, the two answers side by side */
@media (max-width: 560px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border-bottom: 0; }
  .compare tbody th[scope="row"] { grid-column: 1 / -1; padding-bottom: .2rem; background: var(--ivory-2); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: .15rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
  .compare-3 tr { grid-template-columns: 1fr; }
  .compare-3 td { padding-top: .45rem; padding-bottom: .45rem; }
}

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-bar { grid-template-columns: 4.6rem 1fr 6rem; gap: .5rem; font-size: .84rem; }
  .blog-head-cta { padding: .55rem .9rem; font-size: .82rem; }
  .legal-logo span { font-size: 1.05rem; }
  .article th, .article td { padding: .65rem .75rem; }
  .article tbody th[scope="row"] { white-space: normal; }
}
