@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #15365e;
  --ink-deep: #0b2445;
  --red: #bd1720;
  --rose: #ef809a;
  --sand: #f8f3ec;
  --cream: #fffdf9;
  --line: #ded9d0;
  --text: #263b52;
  --muted: #67727e;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 20px 50px rgba(10, 38, 71, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 120px 0; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { z-index: 100; width: auto; height: auto; clip: auto; left: 20px; top: 20px; padding: 10px 14px; background: white; border-radius: 5px; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; position: absolute; z-index: 3; top: 0; left: 0; width: 100%; color: white; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { position: fixed; background: rgba(255, 253, 249, .95); color: var(--ink-deep); box-shadow: 0 3px 20px rgba(12, 34, 57, .08); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 21px; letter-spacing: .01em; white-space: nowrap; }
.brand em { font-style: italic; }
.brand-logo { width: 43px; height: 43px; object-fit: contain; flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-cta) { opacity: .9; transition: opacity .2s; }
.site-nav > a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { padding: 9px 16px; border: 1px solid currentColor; border-radius: 99px; }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; }

.hero { min-height: clamp(540px, 50vw, 887px); display: grid; align-items: end; position: relative; overflow: hidden; color: #fff; }
.hero-photo { position: absolute; inset: 0; background: url('img/baner.jpg') center / cover no-repeat; transform: scale(1.01); }
.hero-content { position: relative; padding-bottom: 28px; }
.hero-mobile { display: none; position: relative; }
.hero-hotspot { position: absolute; left: 22.8%; width: 54.6%; border-radius: 99px; }
.hotspot-left { top: 81.5%; height: 7.2%; }
.hotspot-right { top: 89.2%; height: 6.8%; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #ffd1dc; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-deep); font-weight: 400; line-height: .98; }
.hero-text { max-width: 500px; margin: 0 0 0 auto; color: white; text-align: right; font-size: 15px; font-weight: 600; line-height: 1.55; text-shadow: 0 1px 5px rgba(6, 25, 49, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 22px; border: 1px solid transparent; border-radius: 99px; font-weight: 700; font-size: 14px; transition: transform .2s, background .2s, border .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); box-shadow: 0 8px 20px rgba(189, 23, 32, .25); }
.button-primary:hover { background: #a81018; }
.button-primary span, .text-link span { font-size: 19px; line-height: 0; }
.button-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.button-outline:hover { background: #eef2f7; }
.hero-actions { justify-content: flex-end; margin-top: 18px; }
.button-ghost { color: white; border-color: rgba(255,255,255,.65); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }

.section-heading h2 { max-width: 680px; margin-bottom: 0; font-family: var(--serif); font-size: clamp(39px, 4.4vw, 60px); letter-spacing: -.03em; }
.split-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.split-heading > p { max-width: 340px; margin: 0 0 3px; color: var(--muted); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.format-card { min-height: 370px; padding: 36px; border-radius: 3px; display: flex; flex-direction: column; overflow: hidden; }
.course-card { color: white; background: var(--ink); }
.book-card { background: #efe5d7; }
.workbook-card { background: #f9d6dd; }
.format-icon { margin-bottom: 36px; font-size: 35px; line-height: 1; }
.format-card .card-kicker { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.format-card h3 { margin-bottom: 14px; color: inherit; font-family: var(--serif); font-size: 40px; }
.format-card > p:not(.card-kicker) { max-width: 270px; margin-bottom: 28px; font-size: 14px; line-height: 1.65; }
.format-card a { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: 14px; font-weight: 700; }
.format-card a span { font-size: 20px; }

.catalog { background: var(--sand); }
.centered { text-align: center; }
.centered h2 { margin-left: auto; margin-right: auto; }
.centered > p:last-child { margin: 15px auto 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 38px; }
.filter { padding: 9px 17px; color: var(--ink); border: 1px solid #cfc8bd; border-radius: 99px; background: transparent; font-weight: 700; font-size: 13px; transition: .2s; }
.filter:hover, .filter.active { color: white; border-color: var(--ink); background: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; align-items: start; }
.product-card { overflow: hidden; border-radius: 3px; background: var(--cream); box-shadow: 0 2px 0 rgba(19, 54, 94, .03); transition: transform .25s, box-shadow .25s, opacity .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card.hide { display: none; }
.product-image { display: block; aspect-ratio: 1; overflow: hidden; background: #e9e4df; }
.product-image img { height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-info { padding: 20px 19px 23px; }
.product-type { margin-bottom: 8px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-info h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 25px; }
.product-info > p:not(.product-type) { min-height: 65px; margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--ink); border: 0; background: transparent; font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--red); }
.compact .product-info { padding-top: 17px; }
.compact .product-info h3 { margin-bottom: 15px; font-size: 21px; }

.approach { overflow: hidden; }
.approach-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.approach-photo { position: relative; width: min(100%, 440px); margin-left: 22px; }
.approach-photo::before { content: ""; position: absolute; z-index: -1; width: 100%; height: 100%; left: -22px; top: 24px; background: #efd4d9; }
.approach-photo img { box-shadow: var(--shadow); }
.approach-copy h2 { max-width: 560px; font-family: var(--serif); font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -.03em; line-height: 1.02; }
.approach-copy > p:not(.eyebrow) { max-width: 560px; margin: 23px 0 0; color: var(--muted); font-size: 17px; }
.lesson-structure { margin-top: 100px; padding-top: 70px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 28px; padding: 0; margin: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; }
.steps li > span { color: var(--red); font-weight: 700; font-size: 13px; padding-top: 2px; }
.steps h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 23px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.steps-title { display: block; max-width: none; margin: 0 0 36px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.steps li { padding-top: 16px; border-top: 2px solid var(--line); }
.steps-note { display: block; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.steps-note a { color: var(--ink); font-weight: 700; border-bottom: 1px solid currentColor; }
.steps-note a:hover { color: var(--red); }
.approach-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
.approach-facts li { padding: 18px 16px; border-radius: 3px; background: var(--sand); }
.approach-facts strong { display: block; margin-bottom: 4px; color: var(--red); font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.approach-facts span { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

.pricing { background: #f5eee5; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.price-card { position: relative; min-height: 340px; padding: 33px 31px 29px; border: 1px solid #ddd3c6; border-radius: 4px; background: var(--cream); }
.price-card.highlighted { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-10px); }
.popular { position: absolute; top: -13px; left: 23px; margin: 0; padding: 4px 10px; color: white; border-radius: 99px; background: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-label { margin-bottom: 18px; color: var(--ink); font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.price { margin-bottom: 0; color: var(--red); font-family: var(--serif); font-size: 29px; line-height: 1; }
.price span { font-size: 62px; letter-spacing: -.04em; }
.price-note { display: inline-block; margin: 8px 0 20px; padding: 3px 8px; color: var(--ink); border-radius: 2px; background: #e3edf7; font-size: 12px; font-weight: 700; }
.price-card > p:not(.plan-label):not(.price):not(.price-note):not(.popular) { min-height: 72px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.course-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.course-extras > div { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 19px 21px; border-radius: 3px; background: #e9e0d5; }
.course-extras > div > span { color: var(--red); font-size: 20px; }
.course-extras p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.course-extras strong { color: var(--ink); }

.cta-section { padding: 100px 0; color: white; background: var(--ink); }
.cta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cta-section h2 { max-width: 560px; margin-bottom: 18px; color: white; font-family: var(--serif); font-size: clamp(42px, 4.4vw, 60px); letter-spacing: -.03em; }
.cta-section > div > p { max-width: 460px; opacity: .83; }
.contact-card { padding: 27px; border-radius: 4px; background: white; color: var(--text); }
.contact-card-title { margin-bottom: 16px; color: var(--ink); font-family: var(--serif); font-size: 25px; }
.contact-method { display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #e5e1db; color: var(--ink); font-size: 15px; font-weight: 700; transition: color .2s; }
.contact-method:hover { color: var(--red); }
.contact-method small { display: block; color: var(--muted); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.contact-method b { font-size: 19px; font-weight: 400; }
.contact-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--red); border-radius: 50%; background: #f7e4e7; font-size: 16px; }
.contact-button { width: 100%; margin-top: 19px; }
.contact-button + .contact-button { margin-top: 10px; }

.site-footer { padding: 33px 0; background: #0b2445; color: rgba(255,255,255,.82); }
.footer-content { display: grid; grid-template-columns: 1.1fr 1fr auto auto; align-items: center; gap: 25px; }
.site-footer .brand { color: white; }
.site-footer p { margin: 0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: white; }
.copyright { text-align: right; opacity: .65; white-space: nowrap; }

.product-dialog { width: min(480px, calc(100% - 32px)); padding: 42px; border: 0; border-radius: 4px; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.product-dialog::backdrop { background: rgba(4, 22, 43, .66); backdrop-filter: blur(3px); }
.product-dialog h2 { margin: 0 0 15px; font-family: var(--serif); font-size: 45px; }
.product-dialog > p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.dialog-actions { display: grid; gap: 10px; }
.dialog-actions .button { width: 100%; }
.dialog-close { position: absolute; top: 12px; right: 15px; width: 32px; height: 32px; padding: 0; color: var(--ink); border: 0; background: transparent; font-size: 30px; line-height: 1; }

@media (max-width: 850px) {
  .section { padding: 88px 0; }
  .site-header { height: 68px; }
  .menu-toggle { width: 42px; height: 42px; display: grid; align-content: center; gap: 6px; padding: 10px; }
  .menu-toggle span:not(.sr-only) { display: block; height: 1.5px; background: currentColor; transition: transform .2s; }
  .site-nav { display: none; position: absolute; left: 0; top: 68px; width: 100%; padding: 22px 24px 25px; color: var(--ink-deep); background: var(--cream); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .site-nav.open { display: grid; gap: 20px; }
  .site-nav .nav-cta { width: max-content; }
  .hero { min-height: 700px; }
  .split-heading, .approach-layout, .cta-layout { grid-template-columns: 1fr; gap: 34px; }
  .split-heading > p { max-width: 560px; }
  .format-grid { gap: 12px; }
  .format-card { min-height: 335px; padding: 25px; }
  .format-card h3 { font-size: 33px; }
  .format-icon { margin-bottom: 25px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { gap: 12px; }
  .price-card { padding: 29px 22px 25px; }
  .plan-label { font-size: 28px; }
  .price span { font-size: 54px; }
  .approach-photo { margin-left: 22px; }
  .approach-facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .lesson-structure { margin-top: 72px; padding-top: 52px; }
  .cta-layout { gap: 44px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 34px, 1160px); }
  .site-header { padding: 0 17px; }
  .brand { font-size: 18px; }
  .hero { min-height: 0; display: block; }
  .hero-photo, .hero-content { display: none; }
  .hero-mobile { display: block; }
  .hero-content { padding-bottom: 19px; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .button { min-height: 46px; padding: 10px 18px; font-size: 13px; }
  .hero-text { max-width: 310px; font-size: 12px; }
  .section { padding: 70px 0; }
  .section-heading h2 { font-size: 42px; }
  .split-heading { margin-bottom: 34px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-card { min-height: 270px; padding: 28px; }
  .format-card > p:not(.card-kicker) { margin-bottom: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 17px 10px; }
  .product-info { padding: 14px 13px 17px; }
  .product-info h3 { font-size: 21px; }
  .product-info > p:not(.product-type) { display: none; }
  .product-type { margin-bottom: 6px; font-size: 9px; }
  .compact .product-info { padding-top: 14px; }
  .compact .product-info h3 { font-size: 19px; }
  .pricing-grid, .course-extras { grid-template-columns: 1fr; }
  .price-card.highlighted { transform: none; }
  .price-card > p:not(.plan-label):not(.price):not(.price-note):not(.popular) { min-height: 0; }
  .approach-layout { gap: 53px; }
  .approach-photo { width: 79%; margin-left: 17px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .cta-section { padding: 70px 0; }
  .footer-content { grid-template-columns: 1fr; gap: 13px; }
  .copyright { text-align: left; }
  .product-dialog { padding: 35px 26px 28px; }
  .product-dialog h2 { font-size: 37px; }
}
