/* =========================================================
   ENGLISH-TEACHER.UZ 
   GLOBAL DESIGN SYSTEM
   Navy × Platinum × Silver

   styles.css — ОБЩИЙ ДЛЯ ВСЕГО САЙТА

   Страницы могут добавлять собственные CSS,
   но не должны заново определять:
   - цвета
   - типографику
   - кнопки
   - карточки
   - формы
   - ссылки
   - радиусы
   - тени
   - состояния
   - общую сетку
========================================================= */




/* =========================================================
   00. DESIGN TOKENS
========================================================= */

:root{

  /* ---------- Brand ---------- */

  --navy-950: #081426;
  --navy-900: #0d1d33;
  --navy-800: #132b4c;
  --navy-700: #183b72;
  --navy-600: #24508c;
  --navy-500: #3767a4;

  --accent: var(--navy-700);
  --accent-hover: var(--navy-800);
  --accent-active: var(--navy-900);

  /* ---------- Platinum / Silver ---------- */

  --platinum-50: #fafbfc;
  --platinum-100: #f5f7f9;
  --platinum-200: #e7ebf0;
  --platinum-300: #dfe4e9;

  --silver-300: #cbd2da;
  --silver-400: #b6c0cb;
  --silver-500: #929eab;
  --silver-600: #75818f;
  --silver-700: #596574;

  /* ---------- Surfaces ---------- */

  --bg: #f8f9fb;
  --bg-soft: #eef1f4;

  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --surface-muted: #e1e6ec;
  --surface-dark: var(--navy-950);

  /* ---------- Text ---------- */

  --heading: #101b2b;
  --text: #263447;
  --muted: #5f6d7e;
  --muted-2: #7a8795;
  --inverse: #ffffff;

  /* ---------- Borders ---------- */

  --border: rgba(13, 29, 51, 0.10);
  --border-medium: rgba(13, 29, 51, 0.15);
  --border-strong: rgba(13, 29, 51, 0.22);

  --silver-border:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95),
      rgba(182,192,203,0.72),
      rgba(255,255,255,0.92)
    );

  /* ---------- Status ---------- */

  --success: #26734d;
  --success-bg: #edf8f2;

  --warning: #946714;
  --warning-bg: #fff8e8;

  --danger: #a33a42;
  --danger-bg: #fff0f1;

  --info: #315e92;
  --info-bg: #edf4fb;

  /* ---------- Layout ---------- */

  --container: 1120px;
  --container-narrow: 760px;
  --container-wide: 1280px;

  --header-height: 126px;

  /* ---------- Radius ---------- */

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */

  --shadow-xs:
    0 1px 2px rgba(8, 20, 38, 0.04);

  --shadow-sm:
    0 4px 14px rgba(8, 20, 38, 0.055);

  --shadow-md:
    0 12px 32px rgba(8, 20, 38, 0.075);

  --shadow-lg:
    0 22px 58px rgba(8, 20, 38, 0.10);

  --shadow-xl:
    0 32px 80px rgba(8, 20, 38, 0.13);

  /* ---------- Focus ---------- */

  --ring:
    0 0 0 4px rgba(36, 80, 140, 0.16);

  /* ---------- Spacing ---------- */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* ---------- Motion ---------- */

  --ease: cubic-bezier(.2,.8,.2,1);

  --t-fast: 120ms;
  --t: 180ms;
  --t-slow: 280ms;
}


/* =========================================================
   01. RESET / BASE
========================================================= */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  margin: 0;

  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.68;

  color: var(--text);
  background: var(--bg);
}

button,
input,
textarea,
select{
  font-family: inherit;
}

img,
svg,
video{
  max-width: 100%;
}

img{
  height: auto;
}

button,
input,
textarea,
select{
  font: inherit;
}

button{
  color: inherit;
}

::selection{
  color: var(--heading);
  background: rgba(182, 192, 203, 0.45);
}


/* =========================================================
   02. LAYOUT
========================================================= */

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow{
  width: min(var(--container-narrow), calc(100% - 40px));
  margin-inline: auto;
}

.container--wide{
  width: min(var(--container-wide), calc(100% - 40px));
  margin-inline: auto;
}

.section{
  position: relative;
  padding: var(--space-8) 0;
}

.section--soft{
  background: var(--surface-soft);
}

.section--platinum{
  background: var(--platinum-200);
}

.section--dark{
  color: rgba(255,255,255,0.82);
  background: var(--surface-dark);
}

.section--compact{
  padding-block: var(--space-7);
}

.section--large{
  padding-block: var(--space-9);
}


/* =========================================================
   03. TYPOGRAPHY
========================================================= */

.h1,
.h2{
  font-family:
    "Lora",
    Georgia,
    "Times New Roman",
    serif;

  color: var(--heading);
}

.h1{
  width: 100%;
  max-width: none;

  margin: 0 0 var(--space-5);

  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h2{
  margin: 0 0 var(--space-5);

  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h3{
  margin: 0 0 var(--space-3);

  color: var(--heading);

  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.h4{
  margin: 0 0 var(--space-2);

  color: var(--heading);

  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

p{
  margin-top: 0;
}

.muted{
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

.lead,
.section-lead{
  width: 100%;
  max-width: none;

  margin: 0 0 var(--space-7);

  color: var(--muted);

  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);

  margin-bottom: var(--space-4);

  color: var(--accent);

  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before{
  content: "";

  width: 28px;
  height: 1px;

  background: var(--silver-500);
}

small,
.text-small{
  font-size: 13px;
  line-height: 1.55;
}

strong{
  color: var(--heading);
  font-weight: 800;
}


/* =========================================================
   04. LINKS
========================================================= */

a{
  color: inherit;
}

.link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;

  transition:
    color var(--t) var(--ease);
}

.link:hover{
  color: var(--accent-hover);
}

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--accent);
  text-decoration: none;
  font-weight: 700;

  transition:
    gap var(--t) var(--ease),
    color var(--t) var(--ease);
}

.link-arrow::after{
  content: "→";
}

.link-arrow:hover{
  gap: 10px;
  color: var(--accent-hover);
}




.heading-link{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);

  color: inherit;
  text-decoration: none;

  transition:
    color var(--t) var(--ease),
    gap var(--t) var(--ease);
}

.heading-link::after{
  content: "→";

  color: var(--silver-500);

  font-family: "Manrope", sans-serif;
  font-size: 0.72em;
  font-weight: 600;

  transition:
    color var(--t) var(--ease);
}

.heading-link:hover{
  gap: var(--space-3);
  color: var(--navy-700);
}

.heading-link:hover::after{
  color: var(--navy-700);
}

.heading-link:focus-visible{
  outline: none;
  border-radius: var(--radius-xs);
  box-shadow: var(--ring);
}




/* =========================================================
   05. BUTTONS
========================================================= */

.btn{
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 12px 19px;

  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);

  color: var(--heading);
  background: var(--surface);

  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;

  cursor: pointer;

  box-shadow: var(--shadow-xs);

  transition:
    color var(--t) var(--ease),
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

.btn:hover{
  border-color: var(--silver-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

.btn:disabled,
.btn[aria-disabled="true"]{
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn--primary{
  color: var(--inverse);

  border-color: var(--navy-700);

  background:
    linear-gradient(
      180deg,
      var(--navy-600),
      var(--navy-700)
    );

  box-shadow:
    0 10px 24px rgba(24, 59, 114, 0.20);
}

.btn--primary:hover{
  color: var(--inverse);
  border-color: var(--navy-800);

  background:
    linear-gradient(
      180deg,
      var(--navy-700),
      var(--navy-800)
    );

  box-shadow:
    0 14px 30px rgba(24, 59, 114, 0.25);

  transform: translateY(-1px);
}

.btn--secondary{
  color: var(--navy-800);
  border-color: var(--silver-400);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );
}

.btn--ghost{
  background: transparent;
  box-shadow: none;
}

/* Equal-priority actions share a quiet navy / platinum treatment.
   Focus ring, press motion and disabled states come from .btn. */
.btn--balanced{
  color: var(--navy-800);
  border-color: var(--silver-600);
  background: var(--platinum-100);
}

.btn--balanced:hover{
  color: var(--navy-900);
  border-color: var(--navy-600);
  background: var(--platinum-200);
}

.btn--balanced:active{
  border-color: var(--navy-700);
  background: var(--platinum-300);
}

/* Opt in only for peer CTA groups; keep existing mobile layouts. */
@media (min-width: 860px){
  .cta-actions--equal:has(> .btn ~ .btn){
    justify-content: center;
  }
}

.btn--danger{
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

.btn--sm{
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.btn--lg{
  min-height: 54px;
  padding: 15px 24px;
  font-size: 16px;
}


/* =========================================================
   06. CARDS
========================================================= */

.card{
  position: relative;

  padding: var(--space-6);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}

/* Keep reviews and price cards unchanged at this stage.
   Inner-page price sections have a two-column grid with a bold price. */
.card:not(.review):not(#prices .card):not(section:has(.grid--2 > .card > p > strong) .card)::before{
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  width: 40px;
  height: 2px;
  background: var(--navy-700);
  pointer-events: none;
}

/* Preserve the existing hover only for excluded cards and real links. */
.card.review:hover,
#prices .card:hover,
section:has(.grid--2 > .card > p > strong) .card:hover,
a.card[href]:hover{
  border-color: rgba(24, 59, 114, 0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--flat{
  box-shadow: none;
}

.card--soft{
  background: var(--surface-soft);
}

.card--silver{
  border-color: var(--silver-300);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      var(--platinum-100) 62%,
      var(--platinum-200) 100%
    );
}

.card--accent{
  border-color: rgba(24, 59, 114, 0.24);

  background:
    linear-gradient(
      145deg,
      rgba(24,59,114,0.055),
      var(--surface)
    );
}


/* =========================================================
   07. BADGES / CHIPS
========================================================= */

.badge,
.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: fit-content;

  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);

  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.badge{
  padding: 7px 11px;

  color: var(--navy-800);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );
}

.chip{
  padding: 8px 12px;

  color: var(--muted);
  background: var(--surface);
}

.badge--navy{
  color: #fff;
  border-color: var(--navy-700);
  background: var(--navy-700);
}


/* =========================================================
   08. NOTES / ALERTS
========================================================= */

.note,
.alert{
  padding: 16px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  color: var(--muted);
  background: var(--surface-soft);
}

.note{
  margin-top: var(--space-5);
}

.alert--success{
  color: var(--success);
  border-color: rgba(38,115,77,0.20);
  background: var(--success-bg);
}

.alert--warning{
  color: var(--warning);
  border-color: rgba(148,103,20,0.20);
  background: var(--warning-bg);
}

.alert--danger{
  color: var(--danger);
  border-color: rgba(163,58,66,0.20);
  background: var(--danger-bg);
}

.alert--info{
  color: var(--info);
  border-color: rgba(49,94,146,0.20);
  background: var(--info-bg);
}


/* =========================================================
   09. FORMS
========================================================= */

.field{
  display: grid;
  gap: 8px;
}

.field + .field{
  margin-top: var(--space-5);
}

.field__label{
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}

.field__hint{
  color: var(--muted-2);
  font-size: 12px;
}

.input,
.textarea,
.select{
  width: 100%;

  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);

  color: var(--text);
  background: var(--surface);

  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}

.input,
.select{
  min-height: 48px;
  padding: 0 14px;
}

.textarea{
  min-height: 130px;
  padding: 13px 14px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder{
  color: var(--silver-600);
}

.input:hover,
.textarea:hover,
.select:hover{
  border-color: var(--silver-500);
}

.input:focus,
.textarea:focus,
.select:focus{
  outline: none;
  border-color: var(--navy-600);
  box-shadow: var(--ring);
}


/* =========================================================
   10. CHECKBOX / RADIO
========================================================= */

.choice{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--text);

  cursor: pointer;
}

.choice input{
  width: 18px;
  height: 18px;
  margin: 0;

  accent-color: var(--accent);
}


/* =========================================================
   11. TABLES
========================================================= */

.table-wrap{
  width: 100%;
  overflow-x: auto;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.table{
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td{
  padding: 14px 16px;

  border-bottom: 1px solid var(--border);

  text-align: left;
  vertical-align: top;
}

.table th{
  color: var(--heading);
  background: var(--platinum-100);

  font-size: 13px;
  font-weight: 800;
}

.table tr:last-child td{
  border-bottom: 0;
}


/* =========================================================
   12. BREADCRUMBS
========================================================= */

.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;

  margin-bottom: var(--space-6);

  color: var(--muted-2);

  font-size: 13px;
}

.breadcrumbs a{
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover{
  color: var(--accent);
}

.breadcrumbs > * + *::before{
  content: "/";
  margin-right: 7px;
  color: var(--silver-500);
}


/* =========================================================
   13. TABS
========================================================= */

.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  padding: 5px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--platinum-100);
}

.tab{
  padding: 9px 14px;

  border: 0;
  border-radius: var(--radius-sm);

  color: var(--muted);
  background: transparent;

  font-weight: 700;

  cursor: pointer;
}

.tab:hover{
  color: var(--heading);
}

.tab.is-active{
  color: var(--navy-800);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}


/* =========================================================
   14. ACCORDION
========================================================= */

.accordion{
  border-top: 1px solid var(--border);
}

.accordion__item{
  border-bottom: 1px solid var(--border);
}

.accordion__button{
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);

  padding: 18px 0;

  border: 0;

  color: var(--heading);
  background: transparent;

  text-align: left;
  font-weight: 700;

  cursor: pointer;
}

.accordion__content{
  padding: 0 0 20px;
  color: var(--muted);
}


/* =========================================================
   15. PAGINATION
========================================================= */

.pagination{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pagination a,
.pagination button{
  min-width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  color: var(--text);
  background: var(--surface);

  text-decoration: none;

  cursor: pointer;
}

.pagination a:hover,
.pagination button:hover{
  border-color: var(--silver-500);
}

.pagination .is-current{
  color: #fff;
  border-color: var(--navy-700);
  background: var(--navy-700);
}


/* =========================================================
   16. PROGRESS
========================================================= */

.progress{
  width: 100%;
  height: 8px;

  overflow: hidden;

  border-radius: var(--radius-pill);

  background: var(--platinum-300);
}

.progress__fill{
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--navy-600),
      var(--navy-700)
    );

  transition: width var(--t-slow) var(--ease);
}


/* =========================================================
   17. STATS
========================================================= */

.stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.stat{
  padding: var(--space-5);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
}

.stat__value{
  display: block;

  margin-bottom: 3px;

  color: var(--navy-800);

  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.stat__label{
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   18. QUOTES
========================================================= */

.quote{
  position: relative;

  margin: 0;
  padding: 24px 24px 24px 30px;

  border-left: 3px solid var(--silver-400);
  border-radius: 0 var(--radius) var(--radius) 0;

  color: var(--muted);
  background: var(--surface-soft);
}

.quote::before{
  content: "“";

  position: absolute;
  top: 10px;
  left: 9px;

  color: var(--silver-400);

  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
}


/* =========================================================
   19. AVATARS
========================================================= */

.avatar{
  width: 48px;
  height: 48px;

  overflow: hidden;

  border: 1px solid var(--silver-300);
  border-radius: 50%;

  background: var(--platinum-200);
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   20. MEDIA / FIGURES
========================================================= */

.media{
  display: block;
  width: 100%;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-xl);

  background: var(--platinum-100);

  box-shadow: var(--shadow-md);
}

.media img{
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.figure{
  margin: 0;
}

.figure figcaption{
  margin-top: 10px;

  color: var(--muted-2);

  font-size: 12px;
}


/* =========================================================
   21. DIVIDERS
========================================================= */

.divider{
  width: 100%;
  height: 1px;

  margin-block: var(--space-7);

  border: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--silver-300),
      transparent
    );
}


/* =========================================================
   22. SKELETON
========================================================= */

.skeleton{
  position: relative;
  overflow: hidden;

  min-height: 16px;

  border-radius: var(--radius-xs);

  background: var(--platinum-200);
}

.skeleton::after{
  content: "";

  position: absolute;
  inset: 0;

  transform: translateX(-100%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.7),
      transparent
    );

  animation: skeleton-loading 1.35s infinite;
}

@keyframes skeleton-loading{
  to{
    transform: translateX(100%);
  }
}


/* =========================================================
   23. EMPTY STATE
========================================================= */

.empty-state{
  padding: var(--space-9) var(--space-6);

  border: 1px dashed var(--silver-400);
  border-radius: var(--radius-xl);

  text-align: center;

  background: var(--surface-soft);
}

.empty-state__title{
  margin: 0 0 var(--space-2);

  color: var(--heading);

  font-size: 20px;
  font-weight: 800;
}

.empty-state__text{
  width: 100%;
  max-width: none;

  margin: 0;

  color: var(--muted);
}


/* =========================================================
   24. CTA PANEL
========================================================= */

.cta-panel{
  position: relative;
  overflow: hidden;

  padding: clamp(28px, 5vw, 52px);

  border: 1px solid rgba(182,192,203,0.55);
  border-radius: var(--radius-2xl);

  background:
    radial-gradient(
      700px 280px at 10% 0%,
      rgba(182,192,203,0.26),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-100)
    );

  box-shadow: var(--shadow-lg);
}


/* =========================================================
   25. LAYOUT UTILITIES
========================================================= */

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);

  margin-top: var(--space-6);
}

.stack{
  display: grid;
  gap: var(--space-4);
}

.cluster{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.center{
  text-align: center;
}

.visually-hidden{
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}





/* =========================================================
   SITE HEADER
========================================================= */

.header{
  position: fixed;
  inset: 0 0 auto 0;

  z-index: 100;

  border-bottom: 1px solid rgba(13,29,51,0.10);

background: rgba(255,255,255,0.96);

box-shadow:
  0 1px 0 rgba(255,255,255,0.9),
  0 10px 30px rgba(8,20,38,0.08);

  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}


.header__inner{
  min-height: var(--header-height);

  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  grid-template-rows:
    78px
    48px;

  align-items: center;

  column-gap: 20px;
}


/* =========================================================
   LOGO / BRAND
========================================================= */

.logo{
  grid-column: 1;
  grid-row: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  min-width: 190px;

  padding: 8px 0;

  color: var(--navy-950);

  text-decoration: none;
}

.logo__title{
  font-family:
    "Lora",
    Georgia,
    "Times New Roman",
    serif;

  font-size: 22px;
  line-height: 1.05;

  font-weight: 700;

  letter-spacing: -0.035em;

  color: var(--navy-950);
}

.logo__subtitle{
  margin-top: 5px;

  color: var(--silver-700);

  font-size: 10px;
  line-height: 1.15;

  font-weight: 700;

  letter-spacing: 0.035em;
}

.logo:hover .logo__title{
  color: var(--navy-700);
}

.logo:focus-visible{
  outline: none;

  border-radius: var(--radius-xs);

  box-shadow: var(--ring);
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.header__navigation{
  grid-column: 1 / -1;
  grid-row: 2;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  min-width: 0;

  border-top: 1px solid rgba(13,29,51,0.07);
}

.site-nav{
  display: flex;
  align-items: center;

  gap: 12px;
}


.nav__link{
  position: relative;

  padding: 13px 4px;

  color: var(--muted);

  text-decoration: none;

  font-size: 15px;
  line-height: 1;

  font-weight: 700;

  white-space: nowrap;

  transition:
    color var(--t) var(--ease);
}

.nav__link::after{
  content: "";

  position: absolute;

  left: 4px;
  right: 4px;
  bottom: 4px;

  height: 2px;

  border-radius: var(--radius-pill);

  background: var(--navy-700);

  transform: scaleX(0);

  transform-origin: center;

  transition:
    transform var(--t) var(--ease);
}

.nav__link:hover{
  color: var(--navy-900);
}

.nav__link:hover::after{
  transform: scaleX(0.45);
}

.nav__link.is-current{
  color: var(--navy-900);
}

.nav__link.is-current::after{
  transform: scaleX(1);
}


/* =========================================================
   PHONE
========================================================= */

.header__contact{
  grid-column: 2;
  grid-row: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;
}

.header__phone{
  padding: 8px 0;

  color: var(--navy-900);

  text-decoration: none;

  white-space: nowrap;

  font-size: 15px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -0.015em;

  transition:
    color var(--t) var(--ease);
}

.header__phone:hover{
  color: var(--navy-600);
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.header__right{
  grid-column: 3;
  grid-row: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;

  min-width: 0;
}


/* =========================================================
   LANGUAGE SWITCHER
========================================================= */




.lang-select{
  display: inline-flex;

  min-height: 40px;

  padding: 0 34px 0 14px;

  border: 1px solid var(--border);
  border-radius: var(--radius-pill);

  color: var(--navy-900);

  background: rgba(255,255,255,0.82);

  font-size: 12px;
  line-height: 1;

  font-weight: 800;

  cursor: pointer;

  box-shadow: var(--shadow-xs);

  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}

.lang-select:hover{
  border-color: var(--silver-400);
  background: var(--surface);
}

.lang-select:focus{
  outline: none;
  border-color: var(--navy-600);
  box-shadow: var(--ring);
}


/* =========================================================
   BOOKING BUTTON
========================================================= */

.header__booking{
  min-height: 42px;

  padding: 10px 17px;

  border-radius: var(--radius-sm);

  font-size: 14px;

  white-space: nowrap;
}


/* =========================================================
   MOBILE EXTRAS
========================================================= */

.mobile-nav-extra{
  display: none;
}

.mobile-phone{
  color: var(--navy-900);

  text-decoration: none;

  font-size: 16px;

  font-weight: 800;
}

.mobile-booking{
  width: 100%;
}


/* =========================================================
   BURGER
========================================================= */

.burger{
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: rgba(255,255,255,0.82);

  cursor: pointer;

  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.burger:hover{
  border-color: var(--silver-400);

  background: var(--surface);

  box-shadow: var(--shadow-sm);
}

.burger__line{
  display: block;

  width: 19px;
  height: 1.5px;

  margin: 4.5px auto;

  border-radius: var(--radius-pill);

  background: var(--navy-900);
}


/* =========================================================
   HEADER RESPONSIVE
========================================================= */

@media (max-width: 1050px){

  .header__inner{
    column-gap: 16px;
  }

  .logo{
    min-width: 165px;
  }

  .logo__title{
    font-size: 20px;
  }

  .logo__subtitle{
    font-size: 9px;
  }

  .header__phone-number{
    font-size: 13px;
  }

  .nav__link{
    padding-inline: 10px;
  }

  .nav__link::after{
    left: 10px;
    right: 10px;
  }

}


/* =========================================================
   TABLET / MOBILE HEADER
========================================================= */

@media (max-width: 859px){

  :root{
    --header-height: 68px;
  }


  /* ---------- Верхняя строка ---------- */

  .header__inner{
    min-height: var(--header-height);

    display: flex;
    align-items: center;

    gap: 8px;
  }


  /* ---------- Brand ---------- */

  .logo{
    flex: 1 1 auto;

    min-width: 0;

    padding: 6px 0;
  }

  .logo__title{
    font-size: 19px;
    line-height: 1;

    white-space: nowrap;
  }

  .logo__subtitle{
    display: none;
  }


  /* Desktop contact скрываем */

  .header__contact{
    display: none;
  }


  /* ---------- Right ---------- */

  .header__right{
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    margin-left: auto;

    gap: 7px;
  }


  /* ---------- Language ---------- */

  .lang-select{
    width: auto;
    min-width: 58px;
    min-height: 38px;

    padding:
      0
      27px
      0
      11px;

    border-radius: var(--radius-pill);

    font-size: 11px;
    line-height: 1;

    font-weight: 800;

    background-color: rgba(255,255,255,0.88);
  }


  /* ---------- Desktop booking ---------- */

  .header__booking{
    display: none;
  }


  /* ---------- Burger ---------- */

  .burger{
    display: block;

    flex: 0 0 auto;

    width: 40px;
    height: 40px;
  }


  /* =======================================================
     DROPDOWN MENU
  ======================================================= */

  .header__navigation{
    position: fixed;

    top: var(--header-height);
    left: 0;
    right: 0;

    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;

    z-index: 90;

    display: grid;

    gap: 16px;

    padding:
      18px
      20px
      22px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(250,251,252,0.985);

    box-shadow: var(--shadow-lg);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transform: translateY(-130%);

    visibility: hidden;
    pointer-events: none;

    transition:
      transform var(--t-slow) var(--ease),
      visibility var(--t-slow) var(--ease);
  }


  .header__navigation.is-open{
    transform: translateY(0);

    visibility: visible;
    pointer-events: auto;
  }


  /* ---------- Main links ---------- */

  .site-nav{
    width: 100%;

    display: grid;

    gap: 2px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);
  }


  .nav__link{
    width: 100%;

    padding: 13px 4px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.2;

    font-weight: 700;
  }


  .nav__link::after{
    left: 4px;
    right: auto;
    bottom: 5px;

    width: 34px;
  }


  .nav__link:hover::after,
  .nav__link.is-current::after{
    transform: scaleX(1);
  }


  /* ---------- Phone + booking inside burger ---------- */

  .mobile-nav-extra{
    display: grid;

    gap: 12px;
  }


  .mobile-phone{
    display: block;

    padding: 3px 4px 5px;

    color: var(--navy-900);

    text-decoration: none;

    font-size: 15px;
    line-height: 1.2;

    font-weight: 800;
  }


  .mobile-booking{
    width: 100%;

    min-height: 48px;
  }

}


/* =========================================================
   SMALL MOBILE HEADER
========================================================= */

@media (max-width: 520px){

  .logo__title{
    font-size: 18px;
  }

  .lang-select{
    min-width: 54px;
    min-height: 38px;

    padding-left: 10px;
    padding-right: 25px;
  }

  .burger{
    width: 40px;
    height: 40px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px){

  .logo__title{
    font-size: 16px;
  }

  .lang-select{
    min-width: 50px;
    min-height: 36px;

    padding-left: 8px;
    padding-right: 22px;

    font-size: 10px;
  }

  .burger{
    width: 38px;
    height: 38px;
  }

}







/* =========================================================
   INNER PAGE STRUCTURE
   Универсальный каркас внутренних страниц
========================================================= */

/* Общая оболочка внутренних страниц */
.page{
  padding-top: var(--header-height);
}


/* ---------- Page Hero ---------- */

.page-hero{
  position: relative;

  padding:
    var(--space-9)
    0
    var(--space-8);

  background:
    radial-gradient(
      760px 360px at 100% 0%,
      rgba(24,59,114,0.06),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      #ffffff,
      var(--surface-soft)
    );
}

.page-hero__inner{
  max-width: none;
}

.page-hero__eyebrow{
  margin-bottom: var(--space-4);
}

.page-hero__title{
  margin-bottom: var(--space-5);
}

.page-hero__lead{
  width: 100%;
  max-width: none;

  margin: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.7;
}

.page-hero__lead + .page-hero__lead{
  margin-top: var(--space-4);
}

.page-hero__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  margin-top: var(--space-6);
}

.page-hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: var(--space-6);
}


/* ---------- Page Content ---------- */

.page-content{
  position: relative;
}

.page-section{
  padding: var(--space-8) 0;
}

.page-section--soft{
  background: var(--surface-soft);
}

.page-section--platinum{
  background: var(--platinum-200);
}

.page-section__head{
  width: 100%;
  max-width: none;

  margin-bottom: var(--space-7);
}

.page-section__lead{
  margin: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.75;
}


/* ---------- Final CTA ---------- */

.page-cta{
  padding: var(--space-9) 0;
}

.page-cta__inner{
  padding: clamp(28px, 5vw, 48px);

  border: 1px solid var(--navy-950);
  border-radius: var(--radius-xl);

  background: var(--navy-950);

  box-shadow: var(--shadow-md);
}

.page-cta__inner .h2{
  color: var(--inverse);
}

.page-cta__inner .muted{
  color: var(--silver-300);
}

.page-cta__inner .btn--balanced{
  color: var(--navy-800);
  border-color: var(--platinum-300);
  background: var(--platinum-100);
}

.page-cta__inner .btn--balanced:hover{
  color: var(--navy-950);
  border-color: var(--inverse);
  background: var(--surface);
}

.page-cta__inner .btn--balanced:active{
  color: var(--navy-950);
  border-color: var(--platinum-300);
  background: var(--platinum-200);
}

.page-cta__inner .btn--balanced:focus-visible{
  outline: 2px solid var(--silver-300);
  outline-offset: 3px;
}

.page-cta__content{
  width: 100%;
  max-width: none;
}

.page-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: var(--space-6);
}


/* ---------- Breadcrumbs placement ---------- */

.page-hero .breadcrumbs{
  margin-bottom: var(--space-5);
}


/* ---------- Mobile ---------- */

@media (max-width: 859px){

  .page-hero{
    padding:
      var(--space-8)
      0;
  }

  .page-section{
    padding: var(--space-8) 0;
  }

  .page-cta{
    padding: var(--space-8) 0;
  }

}

@media (max-width: 520px){

.page-hero{
  padding:
    var(--space-8)
    0
    var(--space-7);
}

.page-section{
  padding: var(--space-7) 0;
}

.page-cta{
  padding: var(--space-8) 0;
}

  .page-hero__actions,
  .page-cta__actions{
    flex-direction: column;
  }

  .page-hero__actions .btn,
  .page-cta__actions .btn{
    width: 100%;
  }

}




/* =========================================================
   PAGE MENU
   Локальная навигация конкретной страницы

   Не является частью глобального header.
   Может использоваться на главной, в блоге
   и на любых длинных страницах с якорями.
========================================================= */

.page-menu{
  position: relative;

  margin-top: var(--header-height);

  border-top: 1px solid rgba(13,29,51,0.08);
  border-bottom: 1px solid rgba(13,29,51,0.12);

  background:
    linear-gradient(
      180deg,
      var(--platinum-200),
      var(--platinum-100)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.page-menu__inner{
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 4px;
}

.page-menu__link{
  padding: 8px 11px;

  border-radius: var(--radius-sm);

  color: var(--muted);

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  transition:
    color var(--t) var(--ease),
    background var(--t) var(--ease);
}

.page-menu__link:hover{
  color: var(--navy-900);

  background: rgba(13,29,51,0.045);
}

.page-menu__cta{
  margin-left: 5px;

  color: var(--navy-800);

  border: 1px solid var(--silver-300);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--platinum-200)
    );
}

.page-menu__cta:hover{
  color: var(--navy-950);

  border-color: var(--silver-500);

  background: var(--surface);
}


/* Вариант для будущих длинных страниц */

.page-menu--sticky{
  position: sticky;
  top: var(--header-height);

  z-index: 80;
}


/* Mobile */

@media (max-width: 859px){

  .page-menu{
    margin-top: var(--header-height);
  }

  .page-menu__inner{
    min-height: auto;

    justify-content: flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;

    padding-top: 8px;
    padding-bottom: 8px;

    scrollbar-width: none;
  }

  .page-menu__inner::-webkit-scrollbar{
    display: none;
  }

  .page-menu__link{
    flex: 0 0 auto;

    white-space: nowrap;
  }

  .page-menu__cta{
    margin-left: 3px;
  }

}




/* =========================================================
   HERO
========================================================= */

.hero{
  padding-top: var(--space-10);
  padding-bottom: var(--space-9);

  background:
    radial-gradient(
      900px 500px at 0% 0%,
      rgba(182,192,203,0.26),
      transparent 64%
    ),
    radial-gradient(
      760px 460px at 100% 12%,
      rgba(24,59,114,0.075),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--platinum-100) 54%,
      var(--surface-soft) 100%
    );
}


/* ---------- Layout ---------- */

.hero__layout{
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(280px, 0.85fr);

  gap: clamp(32px, 5vw, 64px);

  align-items: center;
}


.hero__content{
  min-width: 0;
}


/* ---------- Intro ---------- */

.hero__intro{
  margin: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}


/* ---------- Trust ---------- */

.hero__trust{
  display: grid;

  margin: var(--space-6) 0 0;
  padding: 0;

  border-top: 1px solid var(--border-medium);

  list-style: none;
}


.hero__trust li{
  position: relative;

  padding:
    15px
    16px
    15px
    24px;

  border-bottom: 1px solid var(--border-medium);

  color: var(--heading);

  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}


.hero__trust li::before{
  content: "";

  position: absolute;
  top: 50%;
  left: 2px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--navy-600);

  box-shadow:
    0 0 0 4px rgba(36,80,140,0.10);

  transform: translateY(-50%);
}


/* ---------- Actions ---------- */

.hero__actions,
.contact__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: var(--space-6);
}


/* ---------- Hero name link ---------- */

.hero__name-link{
  color: inherit;
  text-decoration: none;

  transition:
    color var(--t) var(--ease);
}

.hero__name-link:hover{
  color: var(--navy-600);
}

.hero__name-link:focus-visible{
  outline: none;
  border-radius: var(--radius-xs);
  box-shadow: var(--ring);
}


/* ---------- Portrait ---------- */

.hero__portrait{
  position: relative;

  width: 100%;
  max-width: 340px;

  justify-self: end;
}


.hero__portrait::before{
  content: "";

  position: absolute;
  inset: 14px -14px -14px 14px;

  z-index: 0;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      var(--platinum-200),
      var(--platinum-100)
    );
}


.hero__portrait img{
  position: relative;
  z-index: 1;

  display: block;

  width: 100%;
  aspect-ratio: 3 / 4;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-xl);

  object-fit: cover;

  box-shadow: var(--shadow-lg);
}






/* =========================================================
   STEPS
========================================================= */

.steps{
  counter-reset: process-step;
  display: grid;
  gap: var(--space-5);

  margin-top: var(--space-7);
}

.step{
  counter-increment: process-step;
  padding: var(--space-6);

  border: 1px solid transparent;
  border-radius: var(--radius-lg);

  background: var(--surface-soft);

  box-shadow: none;
}

.step__num{
  margin-bottom: var(--space-5);
  color: var(--navy-800);
  font-size: 0;
  line-height: 1;
  font-weight: 800;
}

.step__num::before{
  content: counter(process-step, decimal-leading-zero);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}


/* Shared photo and lesson cards on the Russian home page. */
.process-panel{
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 420px;
  margin-top: var(--space-7);
  padding: var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--navy-900);
  background-image: url("lesson-process.jpg");
  background-size: cover;
  background-position: center 45%;
}

.process-panel__overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 20, 38, 0.18);
  pointer-events: none;
}

.process-panel .process-panel__steps{
  width: 100%;
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.process-panel .process-panel__step{
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  background: rgba(245, 247, 249, 0.87);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.process-panel__step .muted{
  color: var(--text);
}

@media (max-width: 859px){
  .process-panel{
    min-height: 0;
    padding: var(--space-6) var(--space-4);
    background-position: center;
  }

  .process-panel .process-panel__steps{
    grid-template-columns: minmax(0, 1fr);
  }

  .process-panel .process-panel__step{
    padding: var(--space-4);
  }
}


/* =========================================================
   PROCESS IMAGE
========================================================= */

.process-image{
  display: block;

  width: 100%;
  max-height: 380px;

  margin: var(--space-7) 0 var(--space-8);

  border: 1px solid var(--border);
  border-radius: var(--radius-xl);

  object-fit: cover;

  box-shadow: var(--shadow-lg);

  filter:
    saturate(0.90)
    contrast(1.01);
}


/* =========================================================
   REVIEWS
========================================================= */

#proof{
  background: var(--surface-soft);
}


.reviews{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);

  margin-top: var(--space-7);
}

/* Opt-in slider: other language pages retain their review grid. */
.reviews.reviews--slider{
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-4);
  scrollbar-width: none;
  padding: var(--space-7) var(--space-4) var(--space-8);
  margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-8));
}

.reviews--slider::-webkit-scrollbar{
  display: none;
}

.reviews--slider > .review{
  flex: 0 0 88%;
  min-width: 0;
  height: 30rem;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}

.reviews--slider .review__top,
.reviews--slider .review__meta{
  flex-shrink: 0;
}

.reviews--slider .review__quote{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--silver-300) transparent;
  scrollbar-gutter: stable;
  padding-right: var(--space-2);
}

.reviews-nav:not([hidden]){
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-7);
}

.reviews-nav__button{
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--platinum-100);
  color: var(--navy-800);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.reviews-nav__button:hover:not(:disabled){
  background: var(--platinum-200);
  border-color: var(--silver-400);
}

.reviews-nav__button:disabled{
  opacity: .4;
  cursor: default;
}

.reviews-nav__button:focus-visible,
.reviews--slider:focus-visible,
.reviews--slider .review__quote:focus-visible{
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
}

@media (min-width: 860px){
  .reviews--slider > .review{
    flex-basis: calc((100% - var(--space-5)) / 2);
  }
}

@media (max-width: 859px){
  .reviews-nav:not([hidden]){
    display: none;
  }
}

@media (max-width: 520px){
  .reviews.reviews--slider{
    margin-inline: calc(-1 * var(--space-3));
  }
}

.review{
  padding: var(--space-6);
}

.review__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: var(--space-5);
}

.review__stars{
  color: var(--navy-700);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.review__badge{
  padding: 7px 10px;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-pill);

  color: var(--muted);

  background: var(--platinum-100);

  font-size: 11px;
  font-weight: 700;
}

.review__quote{
  position: relative;

  margin: 0;
  padding: 0;

  color: var(--muted);
}

.review__quote::before{
  content: "“";

  display: block;

  height: 32px;

  margin-bottom: 2px;

  color: var(--silver-400);

  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.review__quote p{
  margin: 0 0 11px;
}

.review__quote p:last-child{
  margin-bottom: 0;
}

.review__meta{
  display: grid;
  gap: 3px;

  margin-top: var(--space-5);
  padding-top: var(--space-4);

  border-top: 1px solid var(--border);
}

.review__name{
  color: var(--heading);
  font-weight: 800;
}

.review__hint{
  color: var(--silver-700);
  font-size: 12px;
}


/* =========================================================
   ABOUT
========================================================= */

.about{
  display: grid;
  gap: var(--space-8);
}

.about__photo{
  position: relative;

  width: fit-content;
}

.about__photo::before{
  content: "";

  position: absolute;
  inset: 14px -14px -14px 14px;

  z-index: -1;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      var(--platinum-200),
      var(--platinum-100)
    );
}

.about__photo img{
  display: block;

  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-xl);

  object-fit: cover;

  box-shadow: var(--shadow-lg);
}


/* ---------- About page hero ---------- */

.about--page{
  display: block;
}

.about--page > .page-hero__eyebrow{
  display: inline-flex;
  margin-bottom: var(--space-5);
}

.about--page .about__content{
  display: flow-root;
}

@media (min-width: 860px){

  .about--page .about__photo{
    float: right;

    width: min(32%, 320px);

    margin:
      0
      14px
      var(--space-5)
      clamp(32px, 5vw, 56px);
  }

  .about--page .about__photo img{
    width: 100%;
    max-width: none;
  }

}




/* =========================================================
   FAQ
========================================================= */

.faq{
  width: 100%;
  max-width: none;
}

.faq__head{
  width: 100%;
  max-width: none;

  margin-bottom: var(--space-7);
}

.faq__head .muted{
  margin-bottom: 0;
}


/* ---------- List ---------- */

.faq__list{
  border-top: 1px solid var(--border-medium);
}


/* ---------- Item ---------- */

.faq__item{
  border-bottom: 1px solid var(--border-medium);
}


/* Убираем стандартный маркер браузера */

.faq__question{
  list-style: none;

  position: relative;

  display: flex;
  align-items: center;

  min-height: 72px;

  padding:
    20px
    56px
    20px
    0;

  color: var(--heading);

  font-size: 17px;
  line-height: 1.45;

  font-weight: 700;

  cursor: pointer;

  transition:
    color var(--t) var(--ease);
}

.faq__question span{
  flex: 1 1 auto;
  min-width: 0;
}



.faq__question::-webkit-details-marker{
  display: none;
}


/* ---------- Plus / Minus ---------- */

.faq__question::before,
.faq__question::after{
  content: "";

  position: absolute;

  right: 6px;
  top: 50%;

  width: 18px;
  height: 2px;

  border-radius: var(--radius-pill);

  background: var(--navy-600);

  transform: translateY(-50%);

  transition:
    transform var(--t) var(--ease),
    background var(--t) var(--ease);
}

.faq__question::after{
  transform:
    translateY(-50%)
    rotate(90deg);
}


/* Когда открыт — плюс превращается в минус */

.faq__item[open] .faq__question::after{
  transform:
    translateY(-50%)
    rotate(0deg);
}


/* ---------- Hover ---------- */

.faq__question:hover{
  color: var(--navy-700);
}

.faq__question:hover::before,
.faq__question:hover::after{
  background: var(--navy-800);
}


/* ---------- Focus ---------- */

.faq__question:focus-visible{
  outline: none;

  border-radius: var(--radius-xs);

  box-shadow: var(--ring);
}


/* ---------- Answer ---------- */

.faq__answer{
  width: 100%;
  max-width: none;

  padding:
    0
    56px
    24px
    0;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.75;
}

.faq__answer p{
  margin: 0;
}


/* ---------- Open state ---------- */

.faq__item[open] .faq__question{
  color: var(--navy-900);
}


/* =========================================================
   FAQ MOBILE
========================================================= */

@media (max-width: 520px){

  .faq__head{
    margin-bottom: var(--space-6);
  }

  .faq__question{
    min-height: 66px;

    padding:
      18px
      44px
      18px
      0;

    font-size: 16px;
  }

  .faq__question::before,
  .faq__question::after{
    right: 4px;

    width: 16px;
  }

  .faq__answer{
    padding:
      0
      44px
      20px
      0;

    font-size: 15px;
  }

}





/* =========================================================
   FOOTER
========================================================= */

.footer{
  padding: 26px 0;

  border-top: 1px solid var(--border);

  background:
    linear-gradient(
      180deg,
      var(--platinum-100),
      var(--platinum-200)
    );
}

.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer .muted{
  margin: 0;
}


/* =========================================================
   TO TOP
========================================================= */

.to-top{
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 13px;

  border: 1px solid var(--silver-300);
  border-radius: var(--radius-pill);

  color: var(--muted);

  background: rgba(255,255,255,0.68);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    background var(--t) var(--ease);
}

.to-top:hover{
  color: var(--navy-800);
  border-color: var(--silver-500);
  background: var(--surface);
}

.to-top:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 860px){

  .grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


.steps{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps:has(> .step:only-child){
  grid-template-columns: 1fr;
}

.steps:has(> .step:nth-child(2):last-child){
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps:has(> .step:nth-child(4):last-child){
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

  .reviews{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


}


/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 859px){


  .about--page .about__content{
    display: flex;
    flex-direction: column;
  }

.about--page .about__photo{
  order: -1;
  align-self: center;
  margin-bottom: var(--space-7);
}



  .section{
    padding-block: var(--space-8);
  }

  .hero{
    padding-top: var(--space-9);
  }

  .stats{
    grid-template-columns: 1fr;
  }

  .hero__layout{
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.hero__portrait{
  max-width: 300px;
  justify-self: center;
}

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px){

  .container,
  .container--narrow,
  .container--wide{
    width: calc(100% - 24px);
  }

    .section{
      padding-block: var(--space-7);
    }

  .h1{
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.16;
  }

  .h2{
    font-size: clamp(23px, 6.5vw, 28px);
    line-height: 1.22;
  }

.hero{
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

  .hero .muted{
    font-size: 16px;
  }

  .hero__actions,
  .contact__actions{
    flex-direction: column;
  }

  .hero__actions .btn,
  .contact__actions .btn{
    width: 100%;
  }

  .card{
    padding: 20px;
  }

  .footer__inner{
    align-items: flex-start;
    flex-direction: column;
  }

  .about__photo::before{
    inset: 9px -9px -9px 9px;
  }

}




/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce){

  html{
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}


/* =========================================================
   HEADER — TESTS DROPDOWN
========================================================= */

.nav-dropdown{
  position: relative;
}

.nav-dropdown__toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.nav-dropdown__arrow{
  display: inline-block;

  margin-top: -2px;

  font-size: 15px;
  line-height: 1;

  transition:
    transform var(--t) var(--ease);
}


/* ---------- Dropdown panel ---------- */

.nav-dropdown__menu{
  position: absolute;

  top: calc(100% + 6px);
  left: 0;

  z-index: 120;

  min-width: 270px;

  padding: 8px;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  background: rgba(255,255,255,0.98);

  box-shadow: var(--shadow-md);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-6px);

  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    visibility var(--t-fast) var(--ease);
}


.nav-dropdown__link{
  display: block;

  padding: 11px 12px;

  border-radius: var(--radius-xs);

  color: var(--muted);

  text-decoration: none;

  font-size: 14px;
  line-height: 1.4;
  font-weight: 650;

  white-space: nowrap;

  transition:
    color var(--t) var(--ease),
    background var(--t) var(--ease);
}


.nav-dropdown__link:hover{
  color: var(--navy-900);
  background: var(--surface-muted);
}


.nav-dropdown__link.is-current{
  color: var(--navy-900);
  background: var(--platinum-100);

  font-weight: 800;
}


/* ---------- Open ---------- */

.nav-dropdown.is-open .nav-dropdown__menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


.nav-dropdown.is-open .nav-dropdown__arrow{
  transform: rotate(180deg);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 859px){

  .nav-dropdown{
    width: 100%;
  }


  .nav-dropdown__toggle{
    justify-content: flex-start;

    width: 100%;
  }


  .nav-dropdown__arrow{
    margin-left: auto;
    margin-right: 4px;
  }


  .nav-dropdown__menu{
    position: static;

    min-width: 0;

    margin: 0;
    padding: 0 0 0 16px;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;

    display: none;
  }


  .nav-dropdown.is-open .nav-dropdown__menu{
    display: block;
  }


  .nav-dropdown__link{
    padding: 10px 12px;

    white-space: normal;

    font-size: 14px;
  }


  /* На мобильном dropdown открывается только кликом,
     а не hover */
  .nav-dropdown:not(.is-open) .nav-dropdown__menu{
    display: none;
  }

}


/* =========================================================
   CORPORATE — OFFICIAL ARRANGEMENTS
========================================================= */

.corporate-official{
  margin-top: var(--space-5);
}

/* =========================================================
   404 PAGE
========================================================= */

.error-screen{
  position: relative;

  width: 100%;
  height: 100vh;
  height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 24px;

  background:
    radial-gradient(
      900px 500px at 50% 50%,
      rgba(36,80,140,0.08),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--platinum-100) 100%
    );
}


/* Огромный 404 на фоне */

.error-screen__number{
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -52%);

  font-family:
    "Lora",
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(220px, 45vw, 680px);
  line-height: 0.75;
  font-weight: 700;
  letter-spacing: -0.08em;

  color: var(--navy-700);
  opacity: 0.055;

  white-space: nowrap;

  user-select: none;
  pointer-events: none;
}


/* Текст поверх 404 */

.error-screen__content{
  position: relative;
  z-index: 1;

  width: min(100%, 600px);

  text-align: center;
}


.error-screen__eyebrow{
  margin: 0 0 14px;

  color: var(--navy-600);

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.error-screen__title{
  margin: 0 0 18px;

  color: var(--heading);

  font-family:
    "Lora",
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 700;

  letter-spacing: -0.025em;
}


.error-screen__text{
  max-width: 500px;

  margin:
    0
    auto
    30px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.7;
}


.error-screen__button{
  min-width: 170px;
}


@media (max-width: 600px){

  .error-screen{
    padding: 20px;
  }

  .error-screen__number{
    font-size: clamp(180px, 60vw, 320px);
  }

  .error-screen__title{
    font-size: clamp(32px, 10vw, 44px);
  }

  .error-screen__text{
    font-size: 16px;
  }

}
