/* Bagira landing, English. Values from the supplied reference page (EN.dc.html);
   tablet and phone layouts from docs/designs/landing-page/design.md.
   Widths: desktop from 1104px, tablet 768-1103px, phone up to 767px. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The shekel sign: the only character outside the latin set, used only in 400 text. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #F6F3EC;
  color: #1D1C19;
  font-family: "Golos Text", system-ui, sans-serif;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid #1D1C19; outline-offset: 3px; }

.wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding: 0 32px; }

/* Buttons: all six are placeholders; they keep the reference look and do nothing. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.btn-dark { background: #1D1C19; color: #FFFFFF; }
.btn-light { background: #FFFFFF; color: #1D1C19; border: 1px solid #D6CFC1; }

/* Top bar */
.top { border-bottom: 1px solid #E5DFD3; }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { flex-grow: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.top-nav { display: flex; gap: 32px; }
.top-nav a { font-size: 0.9375rem; color: #5C574E; text-decoration: none; }
.lang { display: flex; gap: 8px; }
.top .lang { font-size: 0.875rem; color: #5C574E; }
.lang-on { color: #1D1C19; font-weight: 600; }
.btn-top { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

/* Only the working links change colour under the pointer. */
.top-nav a:hover, .bottom-mail:hover { color: #8A6A1F; }

/* Page */
.page { display: flex; flex-direction: column; gap: 160px; padding-top: 112px; padding-bottom: 120px; }

h2 { font-size: 2.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

.block { display: flex; flex-direction: column; gap: 32px; }
.block-wide { gap: 40px; }
.block-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.block-sub { font-size: 1.125rem; line-height: 1.6; color: #5C574E; }
.muted-15 { font-size: 0.9375rem; color: #5C574E; }

/* 01 First screen */
.hero { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid #E5DFD3;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 0.9375rem;
}
.badge-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 4px; background: #C9A24A; }
h1 { font-size: 2.875rem; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.hero-lead { font-size: 1.1875rem; line-height: 1.6; color: #5C574E; }
.hero-actions { display: flex; gap: 12px; }

/* The laptop is sized in fractions of its 520px width, so it scales as a whole. */
.laptop { flex-shrink: 0; width: 520px; display: flex; flex-direction: column; align-items: center; }
.laptop-lid {
  width: 92.3077%;                     /* 480 of 520 */
  padding: 1.7308% 1.7308% 2.3077%;   /* 9 9 12 of 520 */
  background: #1F1E1B;
  border-radius: 14px 14px 0 0;
}
.laptop-lid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 462 / 332;
  object-fit: cover;
  object-position: top left;
  border-radius: 3px;
  color: #E5DFD3;                      /* alt text on the dark screen if the image fails */
}
.laptop-base {
  width: 100%;
  aspect-ratio: 520 / 14;
  display: flex;
  justify-content: center;
  background: #D4D0C7;
  border-radius: 0 0 12px 12px;
}
.laptop-notch { width: 17.3077%; aspect-ratio: 90 / 6; background: #BDB8AD; border-radius: 0 0 6px 6px; }

/* 02 Sometimes one lesson is not enough */
.cases { border-top: 1px solid #E5DFD3; }
.cases li { display: flex; align-items: flex-start; gap: 32px; padding: 28px 0; border-bottom: 1px solid #E5DFD3; }
.case-label { flex: 0 0 340px; font-size: 1.375rem; line-height: 1.35; font-weight: 600; }
.case-arrow { grid-area: arrow; display: block; flex-shrink: 0; margin-top: 4px; }
.case-help { flex: 1 1 0; font-size: 1.0625rem; line-height: 1.6; color: #3E3A33; }

/* 03 Start with physics */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #FFFFFF; border: 1px solid #E5DFD3; border-radius: 14px; }
.subject-main { grid-column: span 2; display: flex; flex-direction: column; gap: 20px; padding: 36px; }
.subject-main .btn { align-self: flex-start; }
.subject-title { display: flex; flex-direction: column; gap: 6px; }
.subject-title h3 { font-size: 1.625rem; font-weight: 600; }
.subject-topics { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; font-size: 1.0625rem; }
.subject-soon { display: flex; flex-direction: column; gap: 20px; }
.card-quiet {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: #EFEAE0;
  border: 1px solid #E5DFD3;
  border-radius: 14px;
}
.card-quiet h3 { font-size: 1.25rem; font-weight: 600; color: #5C574E; }

/* 05 Anna Elkin and the comparison */
.quote { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: 14px; background: #EFEAE0; }
.quote img {
  display: block;
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #E5DFD3;                 /* the circle stays if the photo fails */
}
.quote-text { display: flex; flex-direction: column; gap: 8px; }
.quote blockquote p { font-size: 1.1875rem; line-height: 1.5; }
.quote figcaption { font-size: 0.9375rem; color: #5C574E; }

/* A real table for screen readers at every width; rows are laid out as grids, so the
   table roles are also set in the markup (some browsers drop them on display changes). */
.compare { padding: 8px 32px; background: #FFFFFF; border: 1px solid #E5DFD3; border-radius: 14px; }
.compare table, .compare thead, .compare tbody { display: block; width: 100%; }
.compare tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.compare th, .compare td { display: block; padding: 0; text-align: left; font-weight: 400; }
.compare thead tr { padding: 20px 0; border-bottom: 1px solid #E5DFD3; font-size: 0.9375rem; color: #5C574E; }
.compare thead .compare-us { color: #1D1C19; font-weight: 600; }
.compare tbody tr { padding: 18px 0; border-bottom: 1px solid #EFEAE0; font-size: 1rem; }
.compare tbody tr:last-child { border-bottom: none; }
.compare tbody td:has(svg) { display: flex; align-items: center; }
.compare svg { display: block; }
.compare .compare-us-price { font-weight: 500; }

/* 06 For parents, 07 Who we are */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-small { display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.card-team { gap: 10px; }
.card-small h3 { font-size: 1.1875rem; font-weight: 600; }
.card-small p { font-size: 1rem; line-height: 1.55; color: #5C574E; }
.belief { max-width: 880px; font-size: 1.625rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
/* The reference ends this block with an empty paragraph (40px gap plus its 16px margins):
   72px more before the teachers block, on desktop only. */
.team { padding-bottom: 72px; }

/* 08 For teachers */
.join { display: flex; align-items: center; gap: 48px; padding: 56px; border-radius: 18px; background: #EFEAE0; }
.join-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.join h2 { font-size: 1.625rem; }
.join p { font-size: 1.0625rem; line-height: 1.6; color: #5C574E; }
.join .btn { flex-shrink: 0; }

/* 09 FAQ */
.faq { max-width: 800px; border-top: 1px solid #E5DFD3; }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid #E5DFD3; }
.faq-item h3 { font-size: 1.125rem; font-weight: 500; }
.faq-item p { font-size: 1rem; line-height: 1.55; color: #5C574E; }

/* 10 Final call */
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 48px;
  border-radius: 18px;
  background: #EFEAE0;
  text-align: center;
}
.final p { max-width: 620px; font-size: 1.125rem; line-height: 1.6; color: #5C574E; }
.btn-final { padding: 0 32px; }

/* Footer */
.bottom { border-top: 1px solid #E5DFD3; }
.bottom-in { display: flex; align-items: flex-start; gap: 32px; padding-top: 40px; padding-bottom: 40px; font-size: 0.9375rem; color: #5C574E; }
.bottom-brand { flex-grow: 1; font-size: 1.125rem; font-weight: 600; color: #1D1C19; }
.bottom-mail { color: #5C574E; }
.bottom-privacy { text-decoration: underline; }

/* Tablet */
@media (max-width: 1103px) {
  .top-in, .top-nav { gap: 24px; }
  .page { gap: 120px; padding-top: 80px; padding-bottom: 96px; }
  h2 { font-size: 2rem; }
  h1 { font-size: 2.625rem; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-text { flex: none; max-width: 640px; }
  .laptop { width: 100%; max-width: 520px; align-self: center; }
  .case-label { flex-basis: min(340px, 38%); }
  .subject-main { padding: 32px; }
  .compare { padding: 8px 24px; }
  .team { padding-bottom: 0; }
  .join { padding: 40px; }
  .final { padding: 56px 40px; }
}

/* Phone */
@media (max-width: 767px) {
  .wrap { padding-left: 16px; padding-right: 16px; }

  .top-in {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand lang btn" "nav nav nav";
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    min-height: 0;
    padding-top: 12px;
  }
  .brand { grid-area: brand; }
  .top-nav { grid-area: nav; }
  .top .lang { grid-area: lang; }
  .btn-top { grid-area: btn; width: auto; padding: 0 16px; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 44px; }

  .page { gap: 80px; padding-top: 48px; padding-bottom: 64px; }
  h2 { font-size: 1.75rem; }
  h1 { font-size: 2.125rem; }
  .hero { gap: 40px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .cases li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "label label" "arrow help";
    gap: 12px 16px;
  }
  .case-label { grid-area: label; font-size: 1.1875rem; }
  .case-help { grid-area: help; font-size: 1rem; }

  .subjects { grid-template-columns: minmax(0, 1fr); }
  .subject-main { grid-column: auto; padding: 24px; }
  .subject-main .btn { align-self: stretch; }
  .subject-title h3 { font-size: 1.5rem; }
  .subject-soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-quiet { padding: 20px; }

  .quote { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; }
  .quote img { width: 72px; height: 72px; }

  .compare { padding: 8px 16px; }
  .compare tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
  .compare .compare-corner { display: none; }
  .compare tbody th { grid-column: 1 / -1; }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-small { padding: 20px; }
  .belief { font-size: 1.3125rem; }

  .join { flex-direction: column; align-items: stretch; gap: 24px; padding: 24px; }
  .join h2 { font-size: 1.375rem; }

  .final { align-items: stretch; padding: 40px 20px; }
  .final p { align-self: center; }

  .bottom-in { flex-direction: column; gap: 4px; }
  .bottom-brand { margin-bottom: 8px; }
  .bottom-mail { display: inline-flex; align-items: center; min-height: 44px; }
}
