:root {
  /* Цвета проекта: можно легко менять палитру здесь */
  --color-bg: #fafbfc;
  --color-bg-soft: #eff4f7;
  --color-surface: #ffffff;
  --color-surface-2: #f4efea;
  --color-primary: #6f8598;
  --color-primary-dark: #24313c;
  --color-primary-light: #afc4d6;
  --color-accent: #c98f84;
  --color-accent-dark: #b57a70;
  --color-text: #25313b;
  --color-text-soft: #4f6272;
  --color-border: #d8d0c8;
  --color-warm: #f4efea;
  --color-success: #2f7a4b;
  --color-danger: #b94635;
  --shadow-soft: 0 20px 50px rgba(37, 49, 59, 0.1);
  --shadow-card: 0 16px 35px rgba(37, 49, 59, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container-max: 1160px;
  --gutter: 20px;
  --section-space: clamp(72px, 8vw, 124px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 0% 0%, #eff4f7 0%, var(--color-bg) 45%), var(--color-bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: min(var(--container-max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section,
.section-offset {
  padding-block: var(--section-space);
  scroll-margin-top: 104px;
}

.section-offset {
  padding-top: calc(var(--section-space) + 56px);
}

.soft-bg {
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.95) 0%, rgba(239, 244, 247, 0.95) 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary-light);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2.2rem, 5.3vw, 4.25rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 999;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(140deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(201, 143, 132, 0.34);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 30px rgba(181, 122, 112, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: #fff;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(175, 196, 214, 0.34);
  background: rgba(250, 251, 252, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(250, 251, 252, 0.98);
  box-shadow: 0 8px 30px rgba(37, 49, 59, 0.12);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 122px;
  height: auto;
  object-fit: contain;
}

.desktop-nav ul,
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 26px;
}

.desktop-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(175, 196, 214, 0.34);
  background: rgba(250, 251, 252, 0.98);
}

.mobile-nav ul {
  list-style: none;
  padding: 12px var(--gutter) 24px;
  margin: 0;
  display: grid;
  gap: 14px;
}

.mobile-nav a {
  font-weight: 600;
  color: var(--color-text);
}

.mobile-nav .mobile-nav-btn {
  margin-top: 6px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 38px;
  align-items: center;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 62ch;
  color: var(--color-text-soft);
}

.hero-facts {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-facts li {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(175, 196, 214, 0.45);
}

.hero-facts strong {
  display: block;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 4px;
}

.hero-facts span {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.hero-visual-layer {
  position: absolute;
  inset: 8% 8% 8% 10%;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(110, 135, 158, 0.18) 0%, rgba(110, 135, 158, 0.04) 100%);
  border: 1px solid rgba(175, 196, 214, 0.45);
}

.hero-card {
  position: relative;
  width: min(500px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 244, 248, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(175, 196, 214, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.hero-logo {
  width: 82%;
  height: auto;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-card li {
  padding: 10px 12px;
  border-left: 3px solid rgba(110, 135, 158, 0.65);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 10px 10px 0;
  color: var(--color-text-soft);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--color-text-soft);
  max-width: 68ch;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-strip article,
.feature-card,
.outcome-card,
.program-card,
.audience-card,
.contact-card {
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(175, 196, 214, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-strip article,
.feature-card,
.outcome-card,
.program-card,
.contact-card {
  padding: 22px;
}

.info-strip article:hover,
.feature-card:hover,
.outcome-card:hover,
.program-card:hover,
.audience-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 49, 59, 0.16);
}

.info-strip h3 {
  margin-bottom: 8px;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

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

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outcome-card,
.audience-card {
  position: relative;
}

.outcome-card::before,
.audience-card::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary-light);
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.45;
}

.audience-card {
  padding: 24px 20px;
  font-weight: 600;
}

.program-cards {
  align-items: stretch;
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-meta {
  margin-bottom: 6px;
  color: var(--color-text-soft);
}

.program-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid rgba(175, 196, 214, 0.5);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.accordion-item h3 {
  margin: 0;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 20px 54px 20px 20px;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  cursor: pointer;
  position: relative;
}

.accordion-trigger::after,
.accordion-trigger::before {
  content: "";
  position: absolute;
  background: var(--color-primary);
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion-trigger::after {
  width: 14px;
  height: 2px;
}

.accordion-trigger::before {
  width: 2px;
  height: 14px;
}

.accordion-trigger[aria-expanded="true"]::before {
  opacity: 0;
}

.accordion-panel {
  padding: 0 20px 20px;
}

.accordion-panel ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: var(--color-text-soft);
}

.accordion-panel p {
  color: var(--color-text-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  grid-column: span 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(175, 196, 214, 0.5);
  box-shadow: var(--shadow-card);
  background: #fff;
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding: 18px 18px 18px 70px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(175, 196, 214, 0.5);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(110, 135, 158, 0.2);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cta-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(175, 196, 214, 0.5);
  background: linear-gradient(160deg, #ffffff 0%, #eff4f7 72%, #f4efea 100%);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}

.cta-box p {
  max-width: 69ch;
  margin: 0 auto 24px;
  color: var(--color-text-soft);
}

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 18px;
}

.lead-form {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(175, 196, 214, 0.5);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 32px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(175, 196, 214, 0.35);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--color-danger);
}

.field-error {
  min-height: 1em;
  font-size: 0.82rem;
  color: var(--color-danger);
}

.form-submit {
  margin-top: 8px;
}

.form-note {
  margin-top: 14px;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

.form-note a {
  text-decoration: underline;
}

.form-contacts {
  align-self: start;
  border-radius: var(--radius-md);
  border: 1px solid rgba(175, 196, 214, 0.5);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.form-contacts p {
  margin-bottom: 8px;
  color: var(--color-text-soft);
}

.form-contacts p:last-child {
  margin-bottom: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.contact-card p {
  color: var(--color-text-soft);
}

.site-footer {
  background: var(--color-warm);
  border-top: 1px solid rgba(37, 49, 59, 0.16);
}

.footer-inner {
  padding-block: 34px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(240px, 280px);
  gap: 20px;
  align-items: start;
}

.footer-brand img {
  width: 120px;
  border-radius: 12px;
}

.footer-nav {
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-meta p {
  margin-bottom: 6px;
  color: var(--color-text);
}

.footer-meta p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

.mobile-sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  padding: 14px 18px;
  box-shadow: 0 15px 30px rgba(181, 122, 112, 0.38);
  font-size: 0.96rem;
  font-weight: 700;
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(37, 49, 59, 0.45);
  backdrop-filter: blur(3px);
  z-index: 80;
  padding: 16px;
}

.modal.is-visible {
  display: grid;
}

.modal-content {
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(175, 196, 214, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  text-align: center;
}

.modal-content p {
  margin-bottom: 18px;
  color: var(--color-text-soft);
}

.noscript-warning {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  background: var(--color-danger);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
}

@media (max-width: 1140px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-card {
    width: min(620px, 100%);
  }

  .cards-grid-3,
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 6;
  }

  .footer-inner {
    grid-template-columns: 120px 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .form-wrap {
    grid-template-columns: 1fr;
  }

  .cards-grid-2,
  .cards-grid-3,
  .info-strip,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 14px;
  }

  .section,
  .section-offset {
    scroll-margin-top: 88px;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 102px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-logo {
    width: 100%;
  }

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

  .mobile-sticky-cta {
    display: block;
  }

  .site-footer {
    padding-bottom: 72px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .program-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .program-actions .btn {
    width: 100%;
  }
}
