:root {
    color-scheme: light;
    --ink: #252525;
    --body: #4e4e4e;
    --muted: #66625b;
    --gold: #bca858;
    --gold-dark: #79652c;
    --cream: #f8f6f1;
    --sand: #efebe2;
    --line: #ded9ce;
    --white: #fff;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Open Sans", Arial, sans-serif;
    --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--body); background: var(--white); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: #e8ddb5; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-dark); }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6d5820; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.18; text-wrap: balance; }
h1 { margin-bottom: 22px; font-size: clamp(2.25rem, 4.9vw, 4.35rem); letter-spacing: -.035em; }
h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.4vw, 3.15rem); letter-spacing: -.025em; }
h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
p { margin-bottom: 16px; }
.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 108px); }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading p { max-width: 66ch; margin: 0 auto; color: var(--muted); }

.site-header { position: relative; z-index: 10; background: var(--white); }
.topline { color: #f8f6f1; background: #292823; font-size: 14px; }
.topline-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topline p { margin: 0; }
.phone-reveal { border: 0; padding: 4px 0; color: #f8e6a5; background: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.brand { display: inline-block; max-width: 290px; color: var(--ink); font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.2 var(--serif); text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 30px); }
.nav-item { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-item > a { color: var(--ink); font-size: 14px; text-decoration: none; }
.submenu-toggle { display: grid; width: 25px; height: 32px; place-items: center; border: 0; background: none; cursor: pointer; }
.submenu-toggle span { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.submenu { position: absolute; top: calc(100% + 12px); left: -18px; z-index: 20; display: grid; min-width: 235px; gap: 2px; padding: 10px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 28px #25252518; }
.submenu[hidden] { display: none; }
.submenu::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; content: ""; }
.submenu .submenu-all { color: var(--ink); font-weight: 600; }
.nav-item.has-children > a { cursor: pointer; }
@media (min-width: 761px) and (hover: hover) { .nav-item.has-children:hover > .submenu { display: grid; } }
.submenu a { padding: 9px 10px; color: var(--body); font-size: 14px; text-decoration: none; }
.submenu a:hover { background: var(--cream); }
.menu-toggle { display: none; }

.breadcrumb-wrap { padding-top: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span:last-child { color: var(--ink); }

.hero { overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 82px); min-height: 600px; padding-block: 54px; }
.hero-copy { position: relative; z-index: 1; padding-block: 18px; }
.hero h1 { max-width: 740px; }
.hero-lead { max-width: 65ch; margin-bottom: 24px; color: #4e4b44; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; border: 1px solid #d9cfab; border-radius: 999px; color: #514927; background: #fffdf8; font-size: 13px; line-height: 1.4; }
.hero-actions, .offer-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button-gold { border-color: var(--gold); color: #28251d; background: var(--gold); }
.button-gold:hover { border-color: #a88f3d; color: #211f19; background: #d0bb70; }
.button-light { border-color: #c6b989; color: var(--ink); background: #fffdf9; }
.button-light:hover, .button-outline:hover { border-color: var(--gold-dark); color: var(--ink); background: #f5f0df; }
.button-outline { border-color: #b8ae96; color: #37342e; background: transparent; }
.hero-media { position: relative; min-width: 0; align-self: stretch; min-height: 440px; }
.hero-media::before { position: absolute; inset: 8% 5% 0 10%; content: ""; background: #e7dfca; }
.hero-media img { position: absolute; inset: 0 0 0 auto; width: 88%; height: 100%; object-fit: cover; object-position: center 35%; }
.messenger-popover { position: absolute; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 28px #2525251b; }
.messenger-popover[hidden] { display: none; }
.messenger-popover a { padding: 8px 11px; border-radius: 999px; color: var(--ink); background: var(--cream); font-size: 14px; text-decoration: none; }
.hero-messengers { top: calc(100% + 10px); left: 0; }

.offers-section { background: #fff; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.offer-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line); background: #fff; }
.offer-card:nth-child(2) { background: var(--cream); }
.offer-program { min-height: 48px; margin-bottom: 16px; color: var(--gold-dark); font-size: 14px; font-weight: 600; }
.offer-card h3 { min-height: 58px; margin-bottom: 12px; }
.offer-fit { min-height: 70px; color: var(--muted); font-size: 14px; }
.check-list { display: grid; gap: 10px; margin: 4px 0 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 23px; color: #45433d; font-size: 14px; }
.check-list li::before { position: absolute; top: .15em; left: 0; width: 12px; height: 7px; border-bottom: 2px solid var(--gold-dark); border-left: 2px solid var(--gold-dark); content: ""; transform: rotate(-45deg); }
.offer-price { display: flex; align-items: baseline; gap: 12px; margin-top: auto; margin-bottom: 18px; }
.offer-price strong { color: var(--ink); font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer-price del { color: #69655d; font-size: 15px; }
.offer-actions .button { flex: 1 1 135px; padding-inline: 14px; }
.offer-messengers { right: 16px; bottom: 78px; left: 16px; }

.theses-section { background: var(--cream); }
.theses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 34px; row-gap: 30px; }
.theses-grid:has(> .thesis:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thesis { display: flex; align-items: flex-start; gap: 15px; }
.thesis-mark { flex: 0 0 12px; width: 12px; height: 12px; margin-top: 8px; border: 2px solid var(--gold-dark); border-radius: 50%; }
.thesis h3 { margin-bottom: 8px; }
.thesis p { margin: 0; color: var(--muted); font-size: 15px; }

.programs-section { background: #fff; }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.program-card { position: relative; display: flex; min-width: 0; min-height: 205px; flex-direction: column; padding: 24px 22px; border: 1px solid var(--line); color: var(--body); background: #fff; text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.program-card:hover { border-color: #bca858; color: var(--body); background: var(--cream); }
.program-card h3 { max-width: 90%; margin-bottom: 10px; }
.program-card p { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.program-arrow { position: absolute; top: 18px; right: 18px; color: var(--gold-dark); }
.text-link { margin-top: auto; color: #59491f; font-size: 14px; font-weight: 600; }

.steps-section { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 20px; border-top: 1px solid #c9bea0; }
.step-number { display: block; margin-bottom: 18px; color: var(--gold-dark); font: 400 30px/1 var(--serif); }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.trust-section { background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-card { display: flex; min-width: 0; min-height: 205px; flex-direction: column; padding: 22px; border: 1px solid var(--line); color: var(--body); text-decoration: none; }
a.trust-card:hover { border-color: var(--gold-dark); background: var(--cream); }
.trust-symbol, .trust-score, .trust-brand { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 16px; color: var(--gold-dark); font: 500 20px/1 var(--serif); }
.trust-brand::before { content: "EDU900"; }
.trust-card h3 { font-size: 1.2rem; }
.trust-card p { margin: 0; color: var(--muted); font-size: 14px; }

.text-section { background: #fff; }
.prose { max-width: 76ch; margin-inline: auto; color: #45433d; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { color: #59491f; }

.faq-section { background: var(--cream); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(34px, 7vw, 96px); align-items: start; }
.faq-layout .section-heading { margin: 0; text-align: left; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 20px 34px 20px 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 20px; right: 4px; color: var(--gold-dark); content: "+"; font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 16px 0; }
.faq-answer p { margin: 0; color: var(--muted); }

.contact-section { padding-block: 24px; }
.contact-section.contact-expanded { padding-block: 64px 88px; background: var(--cream); }
.contact-panel { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; }
.contact-messengers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-messenger { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; text-decoration: none; }
.contact-messenger:hover { border-color: var(--gold-dark); color: var(--ink); }
.messenger-icon { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #3d5185; }
.messenger-icon svg { display: block; width: 22px; height: 22px; fill: currentColor; }
.messenger-wa .messenger-icon { color: #287550; }
.messenger-vk .messenger-icon { color: #426b9a; }
.messenger-max .messenger-icon { color: #554d8e; }
.contact-phone { display: flex; align-items: center; gap: 14px; }
.phone-result a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.topline .phone-result a { color: #f8e6a5; }
.contact-response { margin: 20px auto 34px; color: var(--muted); text-align: center; }
.important-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.important-grid article { padding: 22px; border: 1px solid var(--line); background: #fff; }
.important-grid h3 { font-size: 1.2rem; }
.important-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.important-note { max-width: 820px; margin: 56px auto 0; text-align: center; }
.important-note p { color: var(--muted); }

.cta-section { padding-block: 64px; color: #f8f6f1; background: #302f2a; }
.cta-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px; }
.cta-grid h2 { margin-bottom: 10px; color: #fff; }
.cta-grid > div:first-child p { max-width: 42ch; margin-bottom: 0; color: #e5e0d5; }
.cta-section .contact-section { padding: 0; }
.cta-section .contact-panel { justify-content: flex-end; }
.cta-section .contact-messenger { border-color: #777267; color: #fff; background: #3c3a34; }
.cta-section .contact-phone .button { border-color: #cdbd84; color: #fff; }
.cta-section .phone-result a { color: #fff; }

.site-footer { padding-top: 64px; color: #e8e5dc; background: #252521; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 38px; padding-bottom: 42px; }
.brand-light { color: #fff; }
.footer-brand p { max-width: 32ch; margin-top: 16px; color: #c9c5bb; font-size: 14px; }
.site-footer h2 { margin-bottom: 16px; color: #fff; font: 600 15px/1.4 var(--sans); }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer li { font-size: 13px; }
.site-footer a { color: #e8e5dc; }
.site-footer a:hover { color: #f1d98a; }
.footer-license { padding-block: 18px; border-top: 1px solid #4c4a42; color: #cbc8bf; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 24px; border-top: 1px solid #4c4a42; color: #cbc8bf; font-size: 13px; }
.mobile-bar { display: none; }

@media (max-width: 1000px) {
    .header-main { min-height: 76px; }
    .primary-nav { gap: 13px; }
    .nav-item > a { font-size: 13px; }
    .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offer-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .theses-grid:has(> .thesis:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program-grid, .trust-grid, .important-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { min-height: 540px; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 76px; }
    .wrap { width: min(var(--content), calc(100% - 36px)); }
    .topline-inner { min-height: 42px; gap: 12px; }
    .topline p { max-width: 72%; font-size: 12px; line-height: 1.35; }
    .phone-reveal { font-size: 13px; }
    .header-main { position: relative; min-height: 72px; }
    .brand { max-width: calc(100% - 58px); font-size: 1.32rem; }
    .menu-toggle { display: grid; width: 44px; height: 44px; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
    .menu-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); }
    .primary-nav { position: absolute; top: calc(100% - 1px); right: -18px; left: -18px; z-index: 30; display: none; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 16px 20px #25252512; }
    .primary-nav.is-open { display: flex; flex-direction: column; }
    .nav-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; border-bottom: 1px solid #ebe7df; }
    .nav-item > a { flex: 1; padding: 12px 0; font-size: 15px; }
    .submenu-toggle { width: 42px; height: 44px; }
    .submenu { position: static; flex: 1 0 100%; min-width: 0; padding: 0 0 8px 14px; border: 0; background: transparent; box-shadow: none; }
    .submenu a { padding: 8px; }
    .breadcrumb-wrap { padding-top: 12px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; padding-block: 42px 0; }
    .hero-copy { padding: 0; }
    .hero h1 { max-width: 18ch; margin-bottom: 16px; font-size: clamp(2rem, 8.3vw, 3rem); }
    .hero-lead { margin-bottom: 18px; font-size: 16px; }
    .chips { gap: 7px; margin-bottom: 22px; }
    .chips li { padding: 6px 10px; font-size: 12px; }
    .hero-actions { gap: 9px; }
    .hero-actions .button { flex: 1 1 150px; padding-inline: 13px; }
    .hero-media { min-height: 300px; margin-inline: -18px; }
    .hero-media::before { inset: 9% 10% 0 0; }
    .hero-media img { width: 88%; object-position: center 35%; }
    .hero-messengers { right: 0; left: 0; }
    .section { padding-block: 58px; }
    .section-heading { margin-bottom: 30px; text-align: left; }
    .section-heading h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .offer-grid, .theses-grid, .steps-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .theses-grid:has(> .thesis:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); }
    .offer-grid { gap: 14px; }
    .offer-card:last-child:nth-child(odd) { grid-column: auto; }
    .offer-card { padding: 24px 20px; }
    .offer-program, .offer-card h3, .offer-fit { min-height: 0; }
    .offer-card h3 { margin-bottom: 10px; }
    .offer-fit { margin-bottom: 14px; }
    .theses-grid { row-gap: 24px; }
    .program-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .program-card { min-height: 0; padding: 22px; }
    .program-card p { margin-bottom: 18px; }
    .steps-grid { gap: 23px; }
    .step { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; padding-top: 14px; }
    .step-number { grid-row: span 2; margin: 2px 0 0; font-size: 26px; }
    .step h3 { margin-bottom: 6px; }
    .trust-grid, .important-grid { grid-template-columns: minmax(0, 1fr); }
    .trust-card { min-height: 0; }
    .faq-layout { gap: 12px; }
    .faq-layout .section-heading { margin-bottom: 8px; }
    .faq-item summary { font-size: 16px; }
    .contact-section.contact-expanded { padding-block: 54px 64px; }
    .contact-panel { align-items: stretch; flex-direction: column; }
    .contact-messengers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .contact-messenger { justify-content: center; min-height: 48px; padding: 8px 10px; font-size: 14px; }
    .contact-phone { justify-content: center; flex-wrap: wrap; }
    .important-grid { margin-top: 30px; }
    .important-note { margin-top: 38px; text-align: left; }
    .cta-section { padding-block: 46px; }
    .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cta-grid .contact-section { padding: 0; }
    .cta-section .contact-panel { align-items: stretch; }
    .cta-section .contact-messengers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-section .contact-messenger { font-size: 13px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer { padding-top: 48px; padding-bottom: 82px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
    .mobile-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px #25252512; }
    .mobile-bar .button { min-height: 44px; padding: 8px 12px; }
    .mobile-messengers { right: 18px; bottom: calc(100% + 8px); left: 18px; justify-content: center; }
}

@media (max-width: 390px) {
    .wrap { width: calc(100% - 32px); }
    .topline p { max-width: 66%; font-size: 11px; }
    .topline .phone-reveal { font-size: 12px; }
    .hero-grid { padding-top: 34px; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
    .hero-media { min-height: 265px; margin-inline: -16px; }
    .hero-actions .button { flex-basis: 100%; }
    .contact-messenger { gap: 7px; font-size: 13px; }
    .footer-grid { column-gap: 14px; }
    .site-footer li { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.trust-link { margin-top: auto; padding-top: 14px; color: var(--gold-dark); font-weight: 600; font-size: 15px; }
.trust-link::after { content: "\00a0\2192"; }
@media (min-width: 1001px) { .offer-grid:has(> .offer-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; } }
main :is(p, li, dd):not(.offer-program) { font-size: max(16px, 1em); }
