
/* Akrobat: положите лицензионные web-файлы в assets/fonts с этими именами.
   Пока файлов нет, сайт использует системный запасной шрифт. */
@font-face {
  font-family: "Akrobat";
  src: url("../fonts/Akrobat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akrobat";
  src: url("../fonts/Akrobat-SemiBold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akrobat";
  src: url("../fonts/Akrobat-ExtraBold.woff2") format("woff2");
  font-weight: 850 900;
  font-style: normal;
  font-display: swap;
}


    :root {
      --red: #A01C17;
      --blue: #5991CB;
      --ink: #1d1d1f;
      --muted: #6f7278;
      --line: #e8e3dc;
      --paper: #fffaf3;
      --card: #ffffff;
      --soft-red: #f7e8e6;
      --soft-blue: #edf5fc;
      --radius-xl: 32px;
      --radius-lg: 24px;
      --radius-md: 18px;
      --shadow: 0 24px 76px rgba(42, 31, 24, .10), 0 0 42px rgba(255, 255, 255, .50);
      --shadow-soft: 0 16px 46px rgba(42, 31, 24, .075), 0 0 28px rgba(255,255,255,.42);
      --container: 1160px;
      --font: Akrobat, "Akrobat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font);
      color: var(--ink);
      background:
        radial-gradient(circle at 10% 8%, rgba(160, 28, 23, .20), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(89, 145, 203, .26), transparent 34%),
        radial-gradient(circle at 18% 48%, rgba(160, 28, 23, .11), transparent 34%),
        radial-gradient(circle at 84% 66%, rgba(89, 145, 203, .18), transparent 34%),
        radial-gradient(circle at 45% 96%, rgba(160, 28, 23, .10), transparent 34%),
        linear-gradient(180deg, #fff5f2 0%, #f7fbff 35%, #fff4f2 68%, #f4f9ff 100%);
      background-attachment: fixed;
      line-height: 1.5;
      font-size: 19px;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.52));
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(255, 255, 255, .78);
      border-bottom: 1px solid rgba(232, 227, 220, .58); box-shadow: 0 8px 30px rgba(42,31,24,.03);
    }

    .nav {
      min-height: 110px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 850; letter-spacing: -.03em; font-size: 20px; }
    .brand-logo {
      width: 92px; height: 92px; border-radius: 50%; object-fit: contain;
      background: #fff;
      box-shadow: none;
    }
    .brand small { display: block; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: -2px; }

    .nav-links { display: flex; align-items: center; gap: 22px; color: #424348; font-size: 18.5px; font-weight: 760; }
    .nav-links a:hover { color: var(--red); }

    .actions { display: flex; gap: 10px; align-items: center; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 48px; padding: 0 22px; border-radius: 999px;
      border: 1px solid transparent; font-weight: 760; letter-spacing: -.01em;
      cursor: pointer; transition: .18s ease; font-size: 17px;
    }
    .btn-primary { background: var(--red); color: #fff; box-shadow: 0 16px 34px rgba(160, 28, 23, .2); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(160, 28, 23, .26); }
    .btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
    .btn-secondary:hover { transform: translateY(-2px); border-color: rgba(160, 28, 23, .25); }
    .btn-blue { background: var(--blue); color: #fff; }

    .hero { padding: 82px 0 56px; }
    .hero-grid { display: block; }
    .hero-panel { width: 100%; background: linear-gradient(135deg, rgba(255,255,255,.92) 0%, rgba(255,250,248,.9) 52%, rgba(245,250,255,.88) 100%); border: 1px solid rgba(232,227,220,.9); border-radius: var(--radius-xl); padding: clamp(30px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
    
    .hero-watermark {
      position: absolute;
      right: clamp(-44px, -2vw, -16px);
      bottom: clamp(-58px, -3vw, -28px);
      width: clamp(190px, 26vw, 320px);
      height: auto;
      opacity: .07;
      pointer-events: none;
      z-index: 0;
      filter: saturate(.95);
    }

    .eyebrow {
      display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
      background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px;
      color: var(--muted); font-size: 14px; font-weight: 720; margin-bottom: 20px;
    }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(160,28,23,.1); }
    h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .96; letter-spacing: -.065em; max-width: 1060px; position: relative; z-index: 1; }
    .hero-lead { max-width: 960px; font-size: 21px; color: #4c4f55; margin: 24px 0 28px; position: relative; z-index: 1; }
    .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
    .microcopy { margin-top: 18px; color: var(--muted); font-size: 15px; }

    .hero-card {
      background: rgba(255,255,255,.82); border: 1px solid rgba(232,227,220,.9);
      border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow);
      position: relative; overflow: hidden;
    }
    .hero-card::before {
      content: ""; position: absolute; inset: auto -70px -90px auto;
      width: 230px; height: 230px; border-radius: 50%; background: rgba(89,145,203,.16);
    }
    .level-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; position: relative; z-index: 1; }
    .level-card h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
    .level-card p { color: var(--muted); margin: 0 0 18px; }
    .level-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0; }
    .level-pill { height: 48px; border-radius: 15px; display: grid; place-items: center; font-weight: 850; background: var(--soft-blue); color: #24547f; }
    .level-pill:nth-child(3) { background: var(--red); color: #fff; box-shadow: 0 12px 26px rgba(160,28,23,.22); }
    .note-box { background: #fbf7f0; border: 1px dashed #dccfc1; border-radius: 20px; padding: 16px; color: #57514b; font-size: 14px; }

    section { padding: 70px 0; }
    .section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
    .section-kicker { color: var(--red); font-weight: 850; text-transform: uppercase; font-size: 13px; letter-spacing: .13em; margin-bottom: 10px; }
    h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -.055em; }
    .section-text { margin: 0; max-width: 540px; color: var(--muted); font-size: 18px; }

    .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .card { background: linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(251,252,255,.9) 100%); border: 1px solid rgba(232,227,220,.95); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); }
    .card-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--soft-red); color: var(--red); font-weight: 900; }
    .card h3 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.035em; }
    .card p { margin: 0; color: var(--muted); }
    .price { margin: 18px 0 14px; font-size: 34px; letter-spacing: -.05em; font-weight: 900; }
    .price span { color: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: 0; }
    .clean-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: #44474d; }
    .clean-list li { display: flex; gap: 10px; }
    .clean-list li::before { content: "✓"; color: var(--red); font-weight: 900; }

    .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
    .step { padding: 20px; background: linear-gradient(135deg, #fff 0%, #fbfcff 100%); border: 1px solid var(--line); border-radius: 22px; min-height: 160px; }
    .step::before { counter-increment: step; content: "0" counter(step); color: var(--red); font-weight: 900; display: block; margin-bottom: 18px; }
    .step strong { display: block; font-size: 18px; margin-bottom: 6px; letter-spacing: -.02em; }
    .step span { color: var(--muted); font-size: 15px; }

    .program-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
    .program-main { min-height: 360px; background: linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(251,252,255,.9) 100%); }
    .program-list { display: grid; gap: 14px; }
    .mini-card { background: linear-gradient(135deg, #fff 0%, #fbfcff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
    .mini-card strong { font-size: 18px; letter-spacing: -.02em; }
    .mini-card span { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }
    .tag { border-radius: 999px; background: var(--soft-blue); color: #24547f; font-weight: 800; font-size: 12px; padding: 7px 10px; white-space: nowrap; }

    .trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
    .metric { background: linear-gradient(135deg, #fff 0%, #fbfcff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
    .metric strong { display: block; font-size: 29px; letter-spacing: -.05em; }
    .metric span { color: var(--muted); font-size: 15px; }

    .licenses { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 10px; box-shadow: var(--shadow-soft); }
    details.license-details { background: #fff; border-radius: 25px; border: 1px solid var(--line); overflow: hidden; }
    details summary { list-style: none; cursor: pointer; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 850; font-size: 20px; }
    details summary::-webkit-details-marker { display: none; }
    .summary-text small { display: block; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
    .chevron { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; transition: .18s ease; }
    details[open] .chevron { transform: rotate(180deg); }
    .doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 24px 24px; }
    .doc { min-height: 230px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff 0%, #fbfcff 100%); padding: 14px; display: block; transition: .18s ease; cursor: zoom-in; }
    .doc:hover { transform: translateY(-2px); border-color: rgba(160, 28, 23, .22); }
    .doc-preview { height: 260px; border-radius: 14px; background: #fbf7f0; overflow: hidden; border: 1px solid var(--line); }
    .doc-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
    .doc strong { font-size: 16px; }
    .doc span { font-size: 14px; color: var(--muted); }
    .doc > div:not(.doc-preview) { display: none; }


    .card, .step, .mini-card, .metric, .licenses, .contact-box, .faq details {
      box-shadow: var(--shadow-soft);
    }

    .contact-box { background: linear-gradient(135deg, rgba(255,255,255,.94) 0%, rgba(255,250,248,.88) 58%, rgba(246,251,255,.88) 100%); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-soft); }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .field { display: grid; gap: 7px; }
    .field.full { grid-column: 1 / -1; }
    .field label { font-size: 15px; font-weight: 760; color: #424348; }
    .field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; font: inherit; background: #fff; color: var(--ink); outline: none; }
    .field textarea { min-height: 110px; resize: vertical; }
    .field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(160, 28, 23, .42); box-shadow: 0 0 0 4px rgba(160, 28, 23, .08); }
    .form-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

    .team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .avatar { width: 72px; height: 72px; border-radius: 24px; background: linear-gradient(135deg, var(--soft-red), var(--soft-blue)); margin-bottom: 18px; display: grid; place-items: center; font-weight: 900; color: var(--red); font-size: 24px; }

    .faq { display: grid; gap: 12px; }
    .faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 0; }
    .faq summary { padding: 20px 22px; font-size: 17px; }
    .faq p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

    .cta { padding-bottom: 90px; }
    .cta-box { border-radius: 38px; background: linear-gradient(135deg, var(--red), #6f1511); color: #fff; padding: 46px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: 0 28px 80px rgba(160,28,23,.28); }
    .cta-box h2 { color: #fff; }
    .cta-box p { color: rgba(255,255,255,.78); max-width: 650px; }
    .cta-box .btn { background: #fff; color: var(--red); }

    footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 15px; }
    .footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }


    .lightbox {
      position: fixed; inset: 0; z-index: 100;
      display: none; align-items: center; justify-content: center;
      background: rgba(18, 18, 20, .82); padding: 32px;
    }
    .lightbox.is-open { display: flex; }
    .lightbox-img {
      max-width: min(92vw, 980px); max-height: 88vh;
      border-radius: 16px; box-shadow: 0 28px 90px rgba(0,0,0,.38);
      background: #fff; object-fit: contain;
    }
    .lightbox-btn {
      position: absolute; border: 1px solid rgba(255,255,255,.25);
      background: rgba(255,255,255,.12); color: #fff;
      width: 48px; height: 48px; border-radius: 999px;
      display: grid; place-items: center; cursor: pointer;
      font-size: 30px; line-height: 1; backdrop-filter: blur(10px);
    }
    .lightbox-close { top: 24px; right: 24px; font-size: 28px; }
    .lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
    .lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
    .lightbox-count {
      position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
      color: #fff; font-weight: 750; background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
      padding: 8px 14px; backdrop-filter: blur(10px);
    }

    @media (max-width: 920px) {
      .nav-links { display: none; }
      .hero-grid, .program-grid, .cta-box { grid-template-columns: 1fr; }
      .cards-3, .team { grid-template-columns: 1fr; }
      .steps, .trust-strip { grid-template-columns: repeat(2, 1fr); }
      .doc-grid { grid-template-columns: repeat(2, 1fr); }
      .contact-grid { grid-template-columns: 1fr; }
      .hero { padding-top: 48px; }
    }
    @media (max-width: 560px) {
      .container { width: min(100% - 28px, var(--container)); }
      .actions .btn-secondary { display: none; }
      .hero-actions .btn { width: 100%; }
      .level-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
      .level-pill { height: 40px; font-size: 13px; border-radius: 12px; }
      .steps, .trust-strip, .doc-grid { grid-template-columns: 1fr; }
      .section-head { display: block; }
      .section-text { margin-top: 12px; }
      .cta-box { padding: 30px; border-radius: 28px; }
      details summary { align-items: flex-start; }
    }
  
    /* Scroll-driven background gears */
    .gear-layer {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
    }

    .side-gear {
      position: fixed;
      color: var(--red);
      opacity: .115;
      filter: drop-shadow(0 22px 48px rgba(160, 28, 23, .10));
      will-change: transform;
      transform-origin: 50% 50%;
    }

    .side-gear svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible;
    }

    .side-gear.is-blue {
      color: var(--blue);
      opacity: .13;
      filter: drop-shadow(0 22px 48px rgba(89, 145, 203, .12));
    }

    .side-gear .gear-shape,
    .side-gear .gear-ring,
    .side-gear .gear-core {
      fill: none;
      stroke: currentColor;
      stroke-linejoin: round;
      stroke-linecap: round;
    }

    .side-gear .gear-shape { stroke-width: 10; }
    .side-gear .gear-ring { stroke-width: 10; opacity: .72; }
    .side-gear .gear-core { stroke-width: 8; opacity: .36; }

    .gear-left-main {
      width: 360px;
      height: 360px;
      left: -205px;
      top: 15vh;
    }

    .gear-left-small {
      width: 210px;
      height: 210px;
      left: -108px;
      top: 67vh;
      opacity: .08;
    }

    .gear-right-main {
      width: 420px;
      height: 420px;
      right: -238px;
      top: 58vh;
    }

    .gear-right-small {
      width: 250px;
      height: 250px;
      right: -126px;
      top: 138px;
      opacity: .085;
    }

    main,
    footer {
      position: relative;
      z-index: 2;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
    }

    @media (max-width: 920px) {
      .side-gear {
        opacity: .052;
        transform: scale(.72);
      }
      .gear-left-main { left: -238px; }
      .gear-right-main { right: -258px; }
      .gear-left-small,
      .gear-right-small { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .side-gear { transition: none; }
    }


    /* Keep document viewer above sticky header and decorative gears */
    .lightbox { z-index: 9999; }

  


/* Visual prototype: expandable course directions */
.course-hint {
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.course-hint span { color: var(--red); font-weight: 850; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
details.course-card {
  background: linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(251,252,255,.92) 100%);
  border: 1px solid rgba(232,227,220,.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
details.course-card:hover { transform: translateY(-2px); }
details.course-card[open] {
  grid-column: 1 / -1;
  transform: none;
  border-color: rgba(160,28,23,.18);
  box-shadow: var(--shadow);
}
.course-card > summary.course-summary {
  padding: 26px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  font-size: inherit;
  font-weight: inherit;
  position: relative;
  background: transparent;
}
.course-card > summary.course-summary::after { display: none; }
.course-card[open] > summary.course-summary {
  min-height: auto;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.course-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.course-number {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--soft-red); color: var(--red); font-weight: 900; font-size: 16px;
}
.course-abroad .course-number { background: var(--soft-blue); color: #24547f; }
.course-pace .course-number { background: linear-gradient(135deg, var(--soft-red), var(--soft-blue)); color: var(--red); }
.course-badge {
  border-radius: 999px; padding: 7px 10px; background: rgba(255,255,255,.9);
  border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 850;
  text-transform: uppercase; letter-spacing: .08em;
}
.course-summary h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.05; letter-spacing: -.045em; }
.course-summary p { margin: 0; color: var(--muted); font-weight: 600; }
.course-format-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 26px; }
.course-format-chips span {
  border-radius: 999px; padding: 7px 10px; background: var(--soft-blue); color: #24547f;
  font-size: 12px; font-weight: 820;
}
.course-exam .course-format-chips span:first-child { background: var(--soft-red); color: var(--red); }
.course-summary-footer {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--red); font-size: 15px; font-weight: 850;
}
.course-abroad .course-summary-footer { color: #24547f; }
.course-toggle {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--red); font-size: 25px;
  transition: transform .2s ease, background .2s ease;
}
.course-abroad .course-toggle { color: var(--blue); }
.course-card[open] .course-toggle { transform: rotate(45deg); background: #fff; }
.course-detail-body {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 24px; padding: 28px;
  animation: courseReveal .24s ease;
}
@keyframes courseReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.course-detail-main { min-width: 0; }
.course-promise {
  padding: 22px; border-radius: 22px; background: linear-gradient(135deg, var(--soft-red), rgba(255,255,255,.88));
  border: 1px solid rgba(160,28,23,.10); margin-bottom: 20px;
}
.course-abroad .course-promise { background: linear-gradient(135deg, var(--soft-blue), rgba(255,255,255,.9)); border-color: rgba(89,145,203,.15); }
.course-pace .course-promise { background: linear-gradient(135deg, var(--soft-red), var(--soft-blue)); }
.course-promise span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 900; margin-bottom: 7px; }
.course-promise strong { display: block; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.course-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-detail-columns > div { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.course-detail-columns h4 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.025em; }
.course-detail-columns .clean-list { margin-top: 0; font-size: 16px; }
.course-feature { margin-top: 18px; padding: 18px 20px; border-radius: 18px; border: 1px dashed #d8cdc0; background: #fbf7f0; color: #55504b; }
.course-offer {
  align-self: start; padding: 20px; border-radius: 24px; background: rgba(255,255,255,.9);
  border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(42,31,24,.055);
}
.offer-title { font-size: 19px; font-weight: 900; margin-bottom: 14px; letter-spacing: -.02em; }
.offer-option { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; margin-bottom: 10px; }
.offer-featured { background: linear-gradient(135deg, rgba(247,232,230,.72), rgba(255,255,255,.94)); border-color: rgba(160,28,23,.15); }
.course-abroad .offer-featured { background: linear-gradient(135deg, rgba(237,245,252,.92), rgba(255,255,255,.94)); border-color: rgba(89,145,203,.18); }
.offer-label { display: block; color: var(--muted); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.offer-old-price { color: #8e9094; text-decoration: line-through; font-size: 16px; line-height: 1; }
.offer-option strong { display: block; font-size: 31px; line-height: 1; letter-spacing: -.05em; margin: 6px 0 4px; }
.offer-option small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.offer-option p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.offer-option .offer-text-price { font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.course-offer .btn { width: 100%; margin-top: 8px; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { min-height: 300px; display: flex; flex-direction: column; }
.service-card p { max-width: 650px; }
.service-price { margin: 24px 0 18px; font-size: 31px; line-height: 1; letter-spacing: -.045em; font-weight: 900; }
.service-price span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-form-status { display: none; margin-top: 14px; padding: 13px 15px; border-radius: 14px; background: var(--soft-blue); color: #24547f; font-weight: 750; font-size: 14px; }
.demo-form-status.is-visible { display: block; }
@media (max-width: 920px) {
  .course-grid { grid-template-columns: 1fr; }
  details.course-card[open] { grid-column: auto; }
  .course-card > summary.course-summary { min-height: auto; }
  .course-detail-body { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .course-detail-columns { grid-template-columns: 1fr; }
  .course-detail-body { padding: 18px; }
  .course-card > summary.course-summary { padding: 22px; }
  .course-promise strong { font-size: 20px; }
  .course-summary h3 { font-size: 24px; }
  .form-actions .btn { width: 100%; }
}



/* Revision 2: content, cards, trust and team */
.course-grid {
  align-items: stretch;
}
details.course-card {
  height: 100%;
  scroll-margin-top: 126px;
}
details.course-card[open] {
  height: auto;
}
.course-card > summary.course-summary {
  min-height: 410px;
  height: 100%;
}
.course-card[open] > summary.course-summary {
  min-height: auto;
  height: auto;
}
.course-number,
.course-abroad .course-number,
.course-pace .course-number {
  background: var(--soft-red);
  color: var(--red);
}
.course-summary h3 {
  font-size: 31px;
  line-height: 1.03;
}
.course-summary p {
  font-size: 18.5px;
  line-height: 1.42;
}
.course-card[open] .course-summary h3 {
  font-size: 35px;
}
.course-card[open] .course-summary p {
  font-size: 20px;
  max-width: 860px;
}
.course-format-chips span {
  background: transparent;
}
.course-format-chips .chip-group {
  background: var(--soft-red);
  color: var(--red);
}
.course-format-chips .chip-individual {
  background: var(--soft-blue);
  color: #24547f;
}
.course-format-chips .chip-support {
  color: #554b68;
  background: linear-gradient(135deg, rgba(247,232,230,.92), rgba(237,245,252,.96));
  border: 1px solid rgba(89,145,203,.14);
}
.course-summary-actions {
  margin-top: auto;
  padding-top: 20px;
}
.course-summary-footer {
  margin-top: 0;
  padding-top: 17px;
  color: var(--red);
}
.course-abroad .course-summary-footer {
  color: var(--red);
}
.course-toggle,
.course-abroad .course-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0;
  line-height: 1;
  transform: none;
}
.course-toggle::before {
  content: "+";
  display: block;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-1px);
}
.course-card[open] .course-toggle {
  transform: none;
  background: #fff;
}
.course-card[open] .course-toggle::before {
  content: "−";
  font-size: 26px;
  transform: translateY(-2px);
}
.compact-course-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  color: var(--red);
  background: #fff;
  border-color: rgba(160,28,23,.24);
  box-shadow: none;
}
.compact-course-cta:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}
.course-abroad .course-promise,
.course-pace .course-promise,
.course-promise {
  background: linear-gradient(135deg, var(--soft-red), rgba(255,255,255,.9));
  border-color: rgba(160,28,23,.12);
}
.course-abroad .offer-featured,
.offer-featured {
  background: linear-gradient(135deg, rgba(247,232,230,.72), rgba(255,255,255,.94));
  border-color: rgba(160,28,23,.15);
}
.offer-option.offer-group .offer-label {
  color: var(--red);
}
.offer-option.offer-individual .offer-label {
  color: #24547f;
}
.offer-option.offer-support .offer-label {
  color: #554b68;
}
.course-feature {
  display: none;
}

/* Stronger "Other tasks" continuity */
#other {
  padding-top: 42px;
}
#process {
  padding-top: 58px;
}

/* Trust */
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px;
  align-items: stretch;
}
.trust-main-card {
  min-height: 390px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg, var(--red), #711611);
  box-shadow: 0 28px 80px rgba(160,28,23,.24);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.trust-card-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.trust-main-card h3 {
  margin: 0 0 18px;
  max-width: 700px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.trust-main-card p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255,255,255,.8);
  font-size: 18px;
}
.trust-main-card .btn {
  margin-top: auto;
  background: #fff;
  color: var(--red);
  box-shadow: none;
}
.trust-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.trust-benefit {
  min-height: 188px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(232,227,220,.96);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trust-benefit strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--red);
}
.trust-benefit:nth-child(even) strong {
  color: #24547f;
}
.trust-benefit span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Documents */
.license-section-head {
  margin-bottom: 22px;
}
.licenses {
  padding: 12px;
}
details.license-details {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,251,255,.94));
}
details.license-details > summary {
  min-height: 108px;
  padding: 24px 26px;
}
.license-summary-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.license-summary-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(160,28,23,.2);
}
.license-details .summary-text strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.025em;
}
.license-details .summary-text small {
  margin-top: 5px;
}
.license-details .chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 0;
}
.license-details .chevron::before {
  content: "+";
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}
details.license-details[open] .chevron {
  transform: none;
}
details.license-details[open] .chevron::before {
  content: "−";
  font-size: 25px;
  transform: translateY(-2px);
}
.doc-grid {
  padding-top: 8px;
}

/* Expandable team */
.team {
  align-items: stretch;
}
details.team-card {
  height: 100%;
  border: 1px solid rgba(232,227,220,.96);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,252,255,.92));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
details.team-card[open] {
  grid-column: 1 / -1;
  height: auto;
  box-shadow: var(--shadow);
}
.team-summary {
  list-style: none;
  min-height: 430px;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.team-summary::-webkit-details-marker {
  display: none;
}
.team-photo-placeholder {
  min-height: 210px;
  border-radius: 20px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background:
    radial-gradient(circle at 28% 20%, rgba(160,28,23,.22), transparent 34%),
    radial-gradient(circle at 80% 80%, rgba(89,145,203,.28), transparent 38%),
    linear-gradient(135deg, #fff5f2, #eef6fd);
  border: 1px solid rgba(232,227,220,.9);
}
.team-photo-placeholder span {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  color: var(--red);
}
.team-photo-placeholder small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.team-meta h3 {
  margin: 0 0 7px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.team-role {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
}
.team-short {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.team-summary-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--red);
  font-size: 15px;
  font-weight: 850;
}
.team-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 0;
}
.team-toggle::before {
  content: "+";
  font-size: 25px;
  line-height: 1;
  transform: translateY(-1px);
}
.team-card[open] .team-toggle::before {
  content: "−";
  font-size: 26px;
  transform: translateY(-2px);
}
.team-card[open] .team-summary {
  min-height: auto;
  height: auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.team-card[open] .team-photo-placeholder {
  min-height: 180px;
  margin-bottom: 0;
}
.team-card[open] .team-summary-footer {
  margin-top: 0;
  min-width: 185px;
  padding: 0;
  border: 0;
}
.team-detail {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 24px;
  animation: courseReveal .24s ease;
}
.team-detail h4 {
  margin: 0 0 10px;
  font-size: 22px;
}
.team-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.team-facts {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px;
}
.team-facts span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #24547f;
  background: var(--soft-blue);
  font-size: 13px;
  font-weight: 800;
}

/* Sticky-header-aware scrolling */
section[id] {
  scroll-margin-top: 126px;
}

@media (max-width: 920px) {
  .course-card > summary.course-summary {
    min-height: auto;
  }
  .trust-layout {
    grid-template-columns: 1fr;
  }
  .trust-main-card {
    min-height: 330px;
  }
  .team-card[open] .team-summary {
    grid-template-columns: 150px 1fr;
  }
  .team-card[open] .team-summary-footer {
    grid-column: 1 / -1;
    width: 100%;
  }
  .team-detail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .course-summary h3,
  .course-card[open] .course-summary h3 {
    font-size: 27px;
  }
  .course-summary p,
  .course-card[open] .course-summary p {
    font-size: 17px;
  }
  .trust-benefit-grid {
    grid-template-columns: 1fr;
  }
  .trust-benefit {
    min-height: 150px;
  }
  .team-card[open] .team-summary {
    display: flex;
  }
  .team-card[open] .team-photo-placeholder {
    min-height: 210px;
    margin-bottom: 20px;
  }
  .team-card[open] .team-summary-footer {
    min-width: 0;
  }
  .license-summary-main {
    align-items: flex-start;
  }
}

.team-summary {
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  font-size: inherit;
  font-weight: inherit;
}

.course-card[open] .compact-course-cta {
  display: none;
}
.course-card[open] .course-toggle-label {
  font-size: 0;
}
.course-card[open] .course-toggle-label::after {
  content: "Свернуть программу и стоимость";
  font-size: 15px;
}
.team-card[open] .team-toggle-label {
  font-size: 0;
}
.team-card[open] .team-toggle-label::after {
  content: "Свернуть";
  font-size: 15px;
}


/* External team photos */
.team-photo-placeholder {
  overflow: hidden;
  padding: 0;
}
.team-photo-placeholder .team-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center top;
}


/* Mobile-first improvements: navigation, gears and touch layout */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.side-gear {
  --gear-angle: 0deg;
  --gear-scale: 1;
  transform: rotate(var(--gear-angle)) scale(var(--gear-scale));
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(42,31,24,.07);
}

.mobile-menu-icon {
  width: 21px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-icon span {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px) {
  body {
    font-size: 18px;
  }

  .topbar {
    background: rgba(255,255,255,.92);
  }

  .nav {
    min-height: 78px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 17px;
    min-width: 0;
  }

  .brand-logo {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .nav-links,
  .actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-menu:not([hidden]) {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border-top: 1px solid rgba(232,227,220,.75);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 55px rgba(42,31,24,.14);
    backdrop-filter: blur(18px);
  }

  .mobile-menu-inner {
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-nav-links a {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    color: #35363a;
    font-size: 16px;
    font-weight: 790;
  }

  .mobile-nav-links a:active,
  .mobile-nav-links a:focus-visible {
    background: var(--soft-red);
    color: var(--red);
  }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .mobile-menu-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 16px;
  }

  section {
    padding: 54px 0;
    scroll-margin-top: 88px;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .hero-panel {
    padding: 34px;
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(42px, 8.5vw, 60px);
    line-height: .98;
  }

  h2 {
    font-size: clamp(34px, 6.5vw, 44px);
  }

  .section-head {
    align-items: start;
  }

  .course-grid,
  .service-grid,
  .trust-layout,
  .team {
    grid-template-columns: 1fr;
  }

  details.course-card,
  details.team-card {
    scroll-margin-top: 92px;
  }

  .course-card > summary.course-summary {
    min-height: auto;
  }

  .trust-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Keep all four gears visible on tablets and phones. */
  .side-gear {
    --gear-scale: 1;
    opacity: .105;
  }

  .side-gear.is-blue {
    opacity: .115;
  }

  .gear-left-main {
    width: 270px;
    height: 270px;
    left: -158px;
    top: 18vh;
  }

  .gear-right-main {
    width: 300px;
    height: 300px;
    right: -176px;
    top: 60vh;
  }

  .gear-left-small {
    display: block;
    width: 155px;
    height: 155px;
    left: -82px;
    top: 76vh;
    opacity: .085;
  }

  .gear-right-small {
    display: block;
    width: 165px;
    height: 165px;
    right: -88px;
    top: 104px;
    opacity: .095;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav {
    min-height: 70px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand {
    font-size: 15.5px;
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .mobile-nav-links {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .mobile-nav-links a {
    min-height: 42px;
    padding: 9px 10px;
  }

  .mobile-menu-actions {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 17px;
  }

  section {
    padding: 44px 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-panel {
    padding: 27px 22px 30px;
    border-radius: 23px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
    letter-spacing: -.055em;
  }

  h2 {
    font-size: clamp(31px, 9vw, 39px);
    letter-spacing: -.045em;
  }

  .hero-lead {
    margin: 20px 0 24px;
    font-size: 18px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .btn,
  .compact-course-cta,
  .course-offer .btn,
  .service-card .btn,
  .trust-main-card .btn,
  .form-actions .btn,
  .cta-box .btn {
    width: 100%;
  }

  .btn {
    min-height: 50px;
    padding-inline: 18px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-text {
    font-size: 16.5px;
  }

  .course-card > summary.course-summary {
    padding: 21px;
  }

  .course-summary h3,
  .course-card[open] .course-summary h3 {
    font-size: 27px;
  }

  .course-summary p,
  .course-card[open] .course-summary p {
    font-size: 17px;
  }

  .course-format-chips {
    gap: 7px;
  }

  .format-chip {
    font-size: 12px;
  }

  .course-summary-footer {
    gap: 10px;
    font-size: 15px;
  }

  .course-detail-body,
  .team-detail {
    padding: 16px;
  }

  .offer-option,
  .course-promise,
  .trust-benefit,
  .service-card,
  .contact-box {
    border-radius: 20px;
  }

  .trust-main-card {
    min-height: 0;
    padding: 28px 23px;
    border-radius: 25px;
  }

  .trust-benefit-grid {
    grid-template-columns: 1fr;
  }

  .trust-benefit {
    min-height: 145px;
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 12px 14px;
  }

  .doc {
    min-height: 0;
    padding: 7px;
    border-radius: 14px;
  }

  .doc-preview {
    height: 205px;
    border-radius: 10px;
  }

  details.license-details > summary {
    min-height: 88px;
    padding: 18px 16px;
  }

  .license-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .license-details .summary-text strong {
    font-size: 18px;
  }

  .license-details .summary-text small {
    font-size: 12px;
  }

  .team-summary {
    padding: 18px;
  }

  .team-photo-placeholder {
    aspect-ratio: 4 / 3;
  }

  .contact-box {
    padding: 20px;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 50px;
    font-size: 16px; /* Prevents iOS zoom on focus. */
  }

  .cta-box {
    padding: 27px 22px;
    border-radius: 25px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 10px;
  }

  .lightbox-btn {
    width: 42px;
    height: 42px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-count {
    bottom: 10px;
  }

  /* More visible but still decorative mobile gears. */
  .gear-left-main {
    width: 220px;
    height: 220px;
    left: -132px;
    top: 21vh;
  }

  .gear-right-main {
    width: 245px;
    height: 245px;
    right: -148px;
    top: 57vh;
  }

  .gear-left-small {
    width: 132px;
    height: 132px;
    left: -72px;
    top: 80vh;
    opacity: .09;
  }

  .gear-right-small {
    width: 138px;
    height: 138px;
    right: -76px;
    top: 88px;
    opacity: .105;
  }
}

@media (max-width: 380px) {
  .brand span {
    max-width: 92px;
    line-height: 1.05;
  }

  .course-summary-footer {
    align-items: flex-start;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-preview {
    height: 330px;
  }
}


/* ===== Prefinal public-site revision — 2026-08-01 ===== */
:root {
  --support: #2f8178;
  --soft-support: #eaf8f6;
}
button, input, select, textarea { font-family: var(--font); }
.btn { font-family: var(--font); }

/* Desktop header: one line, compact and stable */
.nav { min-height: 96px; gap: 14px; }
.brand { flex: 0 0 auto; gap: 12px; white-space: nowrap; }
.brand-logo { width: 78px; height: 78px; }
.nav-links { gap: clamp(12px, 1.25vw, 20px); font-size: 17px; white-space: nowrap; flex: 1 1 auto; justify-content: center; }
.nav-links a { white-space: nowrap; }
.actions { flex: 0 0 auto; }
.actions .btn { padding-inline: 19px; font-size: 16px; white-space: nowrap; }

/* Real team photo near the top */
.team-showcase { padding: 8px 0 38px; }
.team-showcase-frame { margin: 0; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid rgba(232,227,220,.92); box-shadow: var(--shadow); background: #fff; }
.team-showcase-frame img { width: 100%; height: auto; display: block; }

/* Course illustrations and unified controls */
.course-visual { height: 138px; border-radius: 20px; overflow: hidden; margin: 16px 0 18px; border: 1px solid rgba(232,227,220,.9); background: #fff; }
.course-visual img { width: 100%; height: 100%; object-fit: cover; }
.course-summary-footer,
.course-abroad .course-summary-footer,
.course-toggle,
.course-abroad .course-toggle,
.team-summary-footer,
.team-toggle { color: var(--ink); }
.course-format-chips .chip-support,
.offer-option.offer-support { color: var(--support); background: var(--soft-support); border-color: rgba(47,129,120,.2); }
.offer-option.offer-support .offer-label { color: var(--support); }
.offer-option.offer-support { background: linear-gradient(135deg, var(--soft-support), rgba(255,255,255,.96)); }
.course-card > summary.course-summary { min-height: 560px; }
.course-card[open] > summary.course-summary { min-height: auto; }
.course-card[open] .course-visual { max-width: 720px; height: 170px; }
.offer-individual small { font-size: 13px; }

/* Other tasks */
.service-price span { display: block; }

/* Integrated trust documents */
.trust-main-card .trust-docs-toggle { margin-top: auto; background: #fff; color: var(--red); box-shadow: none; }
.trust-benefit { min-height: 220px; }
.trust-benefit strong { font-size: clamp(21px, 2vw, 29px); line-height: 1.08; }
.trust-benefit:nth-child(even) strong { color: #24547f; }
.trust-docs-panel { margin-top: 18px; padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: var(--shadow-soft); }
.trust-docs-panel[hidden] { display: none; }
.trust-docs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.trust-docs-head h3 { margin: 0 0 5px; font-size: 30px; letter-spacing: -.04em; }
.trust-docs-head p { margin: 0; color: var(--muted); }
.trust-docs-close { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 27px; cursor: pointer; line-height: 1; }

/* Team cards: independent accordion and cleaner content */
.team-short, .team-facts { display: none !important; }
.team-role { font-size: 17px; line-height: 1.35; }
.team-detail { display: block; }
.team-detail > div { max-width: 980px; }
.team-detail p { margin: 0 0 14px; color: #4b4e54; font-size: 17px; line-height: 1.58; }
.team-summary-footer, .team-toggle-label { color: var(--ink); }

/* Form */
.field-hint { margin-top: -2px; color: var(--muted); font-size: 13px; }
.consent-row { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 2px; color: #4b4e54; font-size: 14px; line-height: 1.45; }
.consent-row input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--red); }
.consent-row a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: rgba(160,28,23,.7); box-shadow: 0 0 0 4px rgba(160,28,23,.08); }

/* Contacts */
.contacts-section { padding-top: 58px; }
.contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.contact-card { min-height: 128px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.92)); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; transition: .18s ease; overflow-wrap: anywhere; }
a.contact-card:hover { transform: translateY(-2px); border-color: rgba(160,28,23,.24); }
.contact-card span { color: var(--muted); font-size: 14px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-size: 21px; line-height: 1.15; letter-spacing: -.025em; }
.contact-card-static { cursor: default; }

/* Full footer */
.site-footer { padding: 42px 0 22px; color: var(--ink); background: rgba(255,255,255,.72); backdrop-filter: blur(12px); }
.footer-main { display: grid; grid-template-columns: 1.05fr .8fr 1.45fr; gap: 30px; align-items: start; }
.footer-company { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 74px; height: 74px; object-fit: contain; border-radius: 50%; }
.footer-company strong, .footer-requisites strong { display: block; font-size: 19px; }
.footer-company span, .footer-requisites span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; }
.footer-links a { color: #4b4e54; text-decoration: underline; text-decoration-color: rgba(29,29,31,.25); text-underline-offset: 3px; font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.footer-bottom a { color: var(--ink); }

/* Cookie notice */
.cookie-banner { position: fixed; z-index: 10000; left: 20px; right: 20px; bottom: 20px; max-width: 860px; margin: 0 auto; display: none; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: 22px; border: 1px solid rgba(232,227,220,.96); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(42,31,24,.18); }
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; color: #4b4e54; font-size: 15px; line-height: 1.4; }
.cookie-banner a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .btn { flex: 0 0 auto; }

/* Switch to mobile menu before the desktop header begins wrapping */
@media (max-width: 1160px) {
  .nav-links, .actions { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; }
  .nav { min-height: 90px; }
  .brand-logo { width: 72px; height: 72px; }
  .mobile-menu:not([hidden]) { display: block; }
}

@media (max-width: 920px) {
  .course-card > summary.course-summary { min-height: auto; }
  .course-visual { height: 190px; }
  .course-card[open] .course-visual { max-width: none; height: 190px; }
  .trust-layout, .footer-main { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-card[open] .team-summary { grid-template-columns: 180px 1fr; }
  .team-card[open] .team-summary-footer { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 680px) {
  .team-showcase { padding-top: 0; padding-bottom: 24px; }
  .team-showcase-frame { border-radius: 24px; }
  .course-visual, .course-card[open] .course-visual { height: 150px; }
  .contacts-grid, .footer-links { grid-template-columns: 1fr; }
  .contact-card { min-height: 108px; }
  .trust-docs-panel { padding: 16px; }
  .trust-docs-head h3 { font-size: 25px; }
  .team-card[open] .team-summary { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .cookie-banner .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* Wide header container so the desktop menu does not wrap or clip. */
.topbar > .container { width: min(1480px, calc(100% - 40px)); }
@media (max-width: 1160px) {
  .topbar > .container { width: min(var(--container), calc(100% - 28px)); }
}

/* ===== Final visual refinements — 2026-08-01 ===== */
:root {
  --support: #4f5359;
  --soft-support: #eef0f2;
  --secondary-action: #555a61;
}

/* Header content follows the same grid as the page */
.topbar > .container {
  width: min(var(--container), calc(100% - 40px));
}

/* Team photo integrated into the hero instead of a separate block */
.hero-panel.hero-with-team-photo {
  min-height: 510px;
  padding-right: clamp(390px, 42vw, 540px);
  isolation: isolate;
}
.hero-panel.hero-with-team-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 58%;
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.76) 20%, rgba(255,255,255,.12) 58%, rgba(255,255,255,.03) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,250,248,.12)),
    url("../images/team/team-group.jpg") center 42% / cover no-repeat;
  opacity: .74;
  pointer-events: none;
}
.hero-panel.hero-with-team-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,252,249,.90) 47%, rgba(255,255,255,.08) 76%, transparent 100%);
  pointer-events: none;
}
.hero-panel.hero-with-team-photo h1,
.hero-panel.hero-with-team-photo .hero-lead,
.hero-panel.hero-with-team-photo .hero-actions,
.hero-panel.hero-with-team-photo .microcopy,
.hero-panel.hero-with-team-photo .hero-watermark {
  position: relative;
  z-index: 2;
}
.hero-panel.hero-with-team-photo h1 { max-width: 690px; }
.hero-panel.hero-with-team-photo .hero-lead { max-width: 610px; }
.hero-panel.hero-with-team-photo .hero-watermark { display: none; }

/* Calm secondary controls and neutral support format */
.course-summary-footer,
.course-abroad .course-summary-footer,
.course-toggle,
.course-abroad .course-toggle,
.course-toggle-label,
.team-summary-footer,
.team-toggle,
.team-toggle-label {
  color: var(--secondary-action) !important;
}
.course-format-chips .chip-support,
.offer-option.offer-support {
  color: var(--support);
  background: var(--soft-support);
  border-color: rgba(79,83,89,.18);
}
.offer-option.offer-support .offer-label { color: var(--support); }
.offer-option.offer-support {
  background: linear-gradient(135deg, #f1f2f4, #fbfbfc);
}

/* Trust area transforms as a single component */
.trust-layout {
  transition: grid-template-columns .28s ease;
}
.trust-layout.is-docs-open {
  grid-template-columns: 1fr;
}
.trust-layout.is-docs-open .trust-main-card {
  grid-column: 1 / -1;
  min-height: auto;
}
.trust-layout.is-docs-open .trust-benefit-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-main-card .trust-docs-panel {
  width: 100%;
  margin-top: 26px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.trust-main-card .trust-docs-panel[hidden] { display: none; }
.trust-main-card .trust-docs-head h3 { color: #fff; }
.trust-main-card .trust-docs-head p { color: rgba(255,255,255,.76); }
.trust-main-card .trust-docs-close {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.13);
  color: #fff;
}
.trust-main-card .doc {
  background: rgba(255,255,255,.95);
}
.trust-layout.is-docs-open .trust-main-card .trust-docs-toggle {
  display: none;
}

/* Contacts: visible direct contacts plus clean action buttons */
.contacts-layout {
  display: grid;
  gap: 18px;
}
.contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-direct-card {
  min-height: 142px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,251,255,.93));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: .18s ease;
  overflow-wrap: anywhere;
}
.contact-direct-card:hover {
  transform: translateY(-2px);
  border-color: rgba(160,28,23,.24);
}
.contact-direct-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.contact-direct-card strong {
  margin-top: 7px;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.contact-direct-card small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}
.contact-social-block {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-soft);
}
.contact-social-title {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}
.contact-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-social-button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(29,29,31,.13);
  background: #fff;
  color: var(--ink);
  font: 760 17px/1 var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
}
.contact-social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(160,28,23,.28);
  color: var(--red);
}
.contact-social-button.is-disabled {
  color: #989ba0;
  background: #f2f3f4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1160px) {
  .topbar > .container { width: min(var(--container), calc(100% - 28px)); }
}

@media (max-width: 920px) {
  .hero-panel.hero-with-team-photo {
    min-height: 650px;
    padding-right: clamp(30px, 5vw, 56px);
    padding-bottom: 285px;
  }
  .hero-panel.hero-with-team-photo::before {
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,252,249,.94) 50%, rgba(255,255,255,.30) 72%, rgba(255,255,255,.06) 100%);
  }
  .hero-panel.hero-with-team-photo::after {
    inset: auto 0 0;
    width: 100%;
    height: 48%;
    background:
      linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.02) 100%),
      url("../images/team/team-group.jpg") center 38% / cover no-repeat;
    opacity: .82;
  }
  .trust-layout.is-docs-open .trust-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-panel.hero-with-team-photo {
    min-height: 690px;
    padding-bottom: 260px;
  }
  .hero-panel.hero-with-team-photo::after {
    height: 41%;
    background-position: center 38%;
  }
  .contact-direct-grid { grid-template-columns: 1fr; }
  .contact-social-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-social-button { width: 100%; padding-inline: 12px; }
  .trust-layout.is-docs-open .trust-benefit-grid { grid-template-columns: 1fr; }
  .trust-main-card .trust-docs-panel { padding: 15px; }
}


/* ===== Final polish: hero photo, support mix and icon contacts — 2026-08-01 ===== */
:root {
  --support: #703d54;
  --soft-support: #f3e9ed;
  --support-border: #dcc6d0;
  --secondary-action: #676b72;
}

/* New team image uses its empty left side for copy and keeps all three people visible. */
.hero-panel.hero-with-team-photo {
  min-height: 520px;
  padding-right: clamp(420px, 43vw, 560px);
}
.hero-panel.hero-with-team-photo::after {
  inset: 0;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,252,249,.86) 32%, rgba(255,255,255,.24) 55%, rgba(255,255,255,.04) 72%, rgba(255,255,255,.01) 100%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,250,248,.08)),
    url("../images/team/team-group.jpg") center 48% / cover no-repeat;
  opacity: .92;
}
.hero-panel.hero-with-team-photo::before {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,252,249,.78) 38%, rgba(255,255,255,.08) 58%, transparent 72%);
}

/* Chosen support option: brand mix between red and blue. */
.course-format-chips .chip-support,
.offer-option.offer-support {
  color: var(--support);
  background: var(--soft-support);
  border-color: var(--support-border);
}
.offer-option.offer-support .offer-label { color: var(--support); }
.offer-option.offer-support { background: var(--soft-support); }

.course-summary-footer,
.course-toggle,
.course-toggle-label,
.team-summary-footer,
.team-toggle,
.team-toggle-label {
  color: var(--secondary-action) !important;
}

/* Direct contacts stay readable and visibly interactive without instruction copy. */
.contact-direct-card { position: relative; }
.contact-direct-card small {
  max-width: 440px;
  color: var(--muted);
}
.contact-link-mark {
  position: absolute;
  right: 22px;
  top: 20px;
  color: var(--secondary-action) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  opacity: .58;
  transition: .18s ease;
}
.contact-direct-card:hover .contact-link-mark {
  transform: translate(2px,-2px);
  color: var(--red) !important;
  opacity: 1;
}

/* One-colour social icons. */
.contact-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-social-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(29,29,31,.13);
  background: rgba(255,255,255,.92);
  color: #5f646b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: .78;
  transition: transform .18s ease, opacity .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-social-icon:hover,
.contact-social-icon:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
  color: var(--red);
  border-color: rgba(160,28,23,.30);
  box-shadow: 0 10px 24px rgba(42,31,24,.08);
}
.contact-social-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.contact-social-icon-text {
  font: 850 17px/1 var(--font);
  letter-spacing: -.02em;
}
.sr-only {
  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;
}

@media (max-width: 920px) {
  .hero-panel.hero-with-team-photo {
    min-height: 680px;
    padding-right: clamp(30px, 5vw, 56px);
    padding-bottom: 300px;
  }
  .hero-panel.hero-with-team-photo::before {
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,252,249,.96) 49%, rgba(255,255,255,.36) 69%, rgba(255,255,255,.03) 100%);
  }
  .hero-panel.hero-with-team-photo::after {
    inset: auto 0 0;
    width: 100%;
    height: 46%;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.12) 27%, rgba(255,255,255,.02) 100%),
      url("../images/team/team-group.jpg") center bottom / contain no-repeat;
    opacity: .94;
  }
}

@media (max-width: 680px) {
  .hero-panel.hero-with-team-photo {
    min-height: 720px;
    padding-bottom: 285px;
  }
  .hero-panel.hero-with-team-photo::after {
    height: 42%;
    background-position: center bottom;
  }
  .contact-social-icons { gap: 10px; }
  .contact-social-icon { width: 50px; height: 50px; border-radius: 16px; }
}


/* ===== Final alignment, expanded-course visuals and SVG social icons — 2026-08-01 ===== */

/* Move the team further right and slightly lower inside the hero while keeping the copy readable. */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo::after {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 35%, rgba(255,255,255,.50) 53%, rgba(255,255,255,.05) 75%, rgba(255,255,255,0) 100%),
      url("../images/team/team-group.jpg");
    background-position: center, 10% 61%;
    background-size: cover, 116% auto;
    background-repeat: no-repeat;
  }
}

/* The illustration becomes a full-bleed banner when a course is expanded. */
.course-card[open] .course-visual {
  width: calc(100% + 52px);
  max-width: none;
  height: clamp(235px, 22vw, 330px);
  margin: 16px -26px 24px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
.course-card[open] .course-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact area uses one visual language. */
.contact-direct-card,
.contact-social-block {
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,251,255,.93));
  border-color: var(--line);
}
.contact-direct-card > span:first-child,
.contact-social-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.contact-social-title { margin-bottom: 15px; }
.contact-social-icons { align-items: center; }
.contact-social-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #5f646b;
  opacity: .82;
}
.contact-social-glyph {
  width: 27px;
  height: 27px;
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.glyph-telegram { -webkit-mask-image: url("../images/social/telegram.svg"); mask-image: url("../images/social/telegram.svg"); }
.glyph-whatsapp { -webkit-mask-image: url("../images/social/whatsapp.svg"); mask-image: url("../images/social/whatsapp.svg"); }
.glyph-vk { -webkit-mask-image: url("../images/social/vk.svg"); mask-image: url("../images/social/vk.svg"); }
.glyph-youtube { -webkit-mask-image: url("../images/social/youtube.svg"); mask-image: url("../images/social/youtube.svg"); }

@media (max-width: 920px) {
  .course-card[open] .course-visual {
    width: calc(100% + 52px);
    height: clamp(210px, 45vw, 300px);
  }
}
@media (max-width: 680px) {
  .course-card[open] .course-visual {
    width: calc(100% + 44px);
    margin-left: -22px;
    margin-right: -22px;
    height: 190px;
  }
  .contact-social-icon { width: 50px; height: 50px; border-radius: 16px; }
  .contact-social-glyph { width: 25px; height: 25px; }
}


/* ===== Visual fixes from screenshot feedback — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo::after {
    background-position: center, 14% 52%;
    background-size: cover, 108% auto;
  }
}

.course-card[open] .course-visual {
  height: clamp(190px, 16vw, 245px);
}
.course-card[open] .course-visual img {
  object-fit: cover;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-social-img {
  width: 27px;
  height: 27px;
  display: block;
  opacity: .78;
}
.contact-social-icon:hover .contact-social-img,
.contact-social-icon:focus-visible .contact-social-img {
  opacity: 1;
}

@media (max-width: 920px) {
  .course-card[open] .course-visual {
    height: clamp(180px, 34vw, 235px);
  }
}
@media (max-width: 680px) {
  .course-card[open] .course-visual {
    height: 160px;
  }
  .contact-social-img {
    width: 25px;
    height: 25px;
  }
}


/* ===== Hero crop refinement from latest feedback — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo::after {
    background-position:
      center,
      center,
      right -26px bottom -8px;
    background-size:
      auto,
      auto,
      auto 90%;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .hero-panel.hero-with-team-photo {
    padding-right: clamp(390px, 42vw, 520px);
  }
  .hero-panel.hero-with-team-photo::after {
    background-position:
      center,
      center,
      right -18px bottom -4px;
    background-size:
      auto,
      auto,
      auto 94%;
  }
}


/* ===== Final hero split-layout and real team portraits — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo {
    min-height: 560px;
    padding-right: clamp(380px, 39vw, 560px);
  }

  .hero-panel.hero-with-team-photo::after {
    inset: 0 0 0 auto;
    width: min(63%, 760px);
    background: url("../images/team/team-group.jpg") right bottom / contain no-repeat;
    opacity: .96;
  }

  .hero-panel.hero-with-team-photo::before {
    background: linear-gradient(90deg,
      rgba(255,255,255,.985) 0%,
      rgba(255,255,255,.97) 33%,
      rgba(255,255,255,.90) 44%,
      rgba(255,255,255,.62) 56%,
      rgba(255,255,255,.18) 68%,
      rgba(255,255,255,0) 80%
    );
  }

  .hero-panel.hero-with-team-photo h1 {
    max-width: 600px;
  }

  .hero-panel.hero-with-team-photo .hero-lead {
    max-width: 560px;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .hero-panel.hero-with-team-photo {
    min-height: 540px;
    padding-right: clamp(340px, 38vw, 500px);
  }

  .hero-panel.hero-with-team-photo::after {
    width: min(61%, 640px);
  }
}

/* Make the new real portraits sit better inside the square frames. */
.team-photo-placeholder .team-photo {
  object-position: center 20%;
}


/* ===== Hero image blend refinement — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo {
    min-height: 540px;
    padding-right: clamp(380px, 39vw, 560px);
  }

  .hero-panel.hero-with-team-photo::after {
    inset: 0 0 0 auto;
    width: min(64%, 770px);
    background-image:
      linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.98) 8%,
        rgba(255,255,255,.92) 18%,
        rgba(255,255,255,.76) 30%,
        rgba(255,255,255,.46) 42%,
        rgba(255,255,255,.20) 52%,
        rgba(255,255,255,.08) 62%,
        rgba(255,255,255,.03) 72%,
        rgba(255,255,255,0) 82%),
      linear-gradient(0deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
      url("../images/team/team-group.jpg");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: left center, center, right bottom;
    background-size: 100% 100%, 100% 100%, auto 100%;
    opacity: .88;
  }

  .hero-panel.hero-with-team-photo::before {
    background: linear-gradient(90deg,
      rgba(255,255,255,.985) 0%,
      rgba(255,255,255,.972) 34%,
      rgba(255,255,255,.93) 44%,
      rgba(255,255,255,.70) 56%,
      rgba(255,255,255,.24) 68%,
      rgba(255,255,255,0) 80%);
  }
}


/* ===== Final micro-fixes: hero shift and contact alignment — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo::after {
    width: min(64%, 780px);
    background-image:
      linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.985) 8%,
        rgba(255,255,255,.94) 18%,
        rgba(255,255,255,.80) 30%,
        rgba(255,255,255,.52) 42%,
        rgba(255,255,255,.24) 52%,
        rgba(255,255,255,.10) 62%,
        rgba(255,255,255,.04) 72%,
        rgba(255,255,255,0) 82%),
      linear-gradient(0deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
      url("../images/team/team-group.jpg");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: left center, center, right -18px bottom;
    background-size: 100% 100%, 100% 100%, auto 100%;
    opacity: .87;
  }
}

@media (max-width: 920px) {
  .hero-panel.hero-with-team-photo {
    min-height: 700px;
    padding-bottom: 305px;
  }
  .hero-panel.hero-with-team-photo::after {
    height: 47%;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.15) 26%, rgba(255,255,255,.03) 100%),
      url("../images/team/team-group.jpg") center bottom / contain no-repeat;
    opacity: .92;
  }
}
@media (max-width: 680px) {
  .hero-panel.hero-with-team-photo {
    min-height: 728px;
    padding-bottom: 292px;
  }
  .hero-panel.hero-with-team-photo::after {
    height: 43%;
  }
}

.contact-direct-card > span:first-child,
.contact-social-title {
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
  min-height: 1.25em;
}
.contact-direct-card {
  align-items: flex-start;
}
.contact-social-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-social-title {
  display: block;
  margin-bottom: 16px;
}
.contact-social-img-vk {
  width: 31px;
  height: 31px;
}


/* ===== Final tiny polish — 2026-08-01 ===== */
@media (min-width: 921px) {
  .hero-panel.hero-with-team-photo::after {
    background-image:
      linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,.985) 6%,
        rgba(255,255,255,.93) 14%,
        rgba(255,255,255,.76) 24%,
        rgba(255,255,255,.44) 34%,
        rgba(255,255,255,.18) 44%,
        rgba(255,255,255,.08) 54%,
        rgba(255,255,255,.03) 66%,
        rgba(255,255,255,0) 76%),
      linear-gradient(0deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
      url("../images/team/team-group.jpg");
    background-position: left center, center, right -34px bottom;
    opacity: .87;
  }
}

.contact-direct-card > span:first-child,
.contact-social-title {
  text-transform: uppercase;
  letter-spacing: .03em;
}
.contact-social-img-vk {
  width: 36px;
  height: 36px;
}


/* ===== VK icon centering tweak — 2026-08-01 ===== */
.contact-social-img-vk {
  width: 34px;
  height: 34px;
  display: block;
  transform: translateX(2px);
}


/* ===== Text abbreviations instead of social icons — 2026-08-01 ===== */
.contact-social-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font: 850 17px/1 var(--font);
  letter-spacing: .02em;
  color: currentColor;
}


/* ===== Live application form — 2026-08-03 ===== */
.form-honeypot {
  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;
}
.contact-box[aria-busy="true"] {
  cursor: wait;
}
.demo-form-status.is-pending {
  background: var(--soft-blue);
  color: #24547f;
}
.demo-form-status.is-success {
  background: #eaf6ee;
  color: #23623a;
  border: 1px solid rgba(35, 98, 58, .16);
}
.demo-form-status.is-error {
  background: #fbeceb;
  color: #8a241f;
  border: 1px solid rgba(138, 36, 31, .16);
}


/* ===== Portrait team cards and refreshed course visuals — 2026-08-03 ===== */
.team-summary {
  min-height: 0;
}

.team-photo-placeholder,
.team-card[open] .team-photo-placeholder {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 4;
}

.team-photo-placeholder .team-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.team-card[open] .team-summary {
  grid-template-columns: 220px minmax(0, 1fr) auto;
}

.course-visual img,
.course-card[open] .course-visual img {
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 920px) {
  .team-card[open] .team-summary {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .team-card[open] .team-summary {
    display: flex;
  }

  .team-photo-placeholder,
  .team-card[open] .team-photo-placeholder {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }
}


/* ===== Image edge-fill refinement — 2026-08-03 ===== */
/* Slightly zoom the artwork inside its clipped frame so no pale source edges remain visible. */
.course-visual img,
.course-card[open] .course-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.028);
  transform-origin: center center;
}

/* The second and third illustrations need a touch more coverage vertically and horizontally. */
.course-abroad .course-visual img,
.course-abroad[open] .course-visual img {
  transform: scale(1.035);
}

.course-pace .course-visual img,
.course-pace[open] .course-visual img {
  transform: scale(1.04);
}

/* Keep the 3:4 portrait frames, but remove the barely visible source-edge strips. */
.team-photo-placeholder .team-photo,
.team-card[open] .team-photo-placeholder .team-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transform-origin: center center;
}
