@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --navy:        #1c2f41;
  --navy-deep:   #111e2b;
  --slate:       #7a96aa;
  --slate-mid:   #a0bbc8;
  --slate-light: #9bb8c8;
  --slate-bg:    #9bafbf;
  --cream:       #f5ede0;
  --cream-dark:  #ede3d2;
  --sage:        #7a9b78;
  --text:        #1c2f41;
  --text-mid:    #3a5060;
  --text-muted:  #556a78;
  --white:       #faf7f2;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 17px; }

section[id]:not(#hero) { scroll-margin-top: 78px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, li, .section__lead, .callout p, .direction-card__text,
.format-card__text, .team-card__text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  lang: ru;
}

/* ── UTILS ── */
.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}
.wrap--narrow { width: min(720px, 100% - 48px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
  text-align: left;
}

h1, h2, h3, h4 { text-align: left; }

/* ── FADE IN ── */
.fi {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.fi.on { opacity: 1; transform: none; }
.fi[data-d="1"] { transition-delay: .1s; }
.fi[data-d="2"] { transition-delay: .2s; }
.fi[data-d="3"] { transition-delay: .3s; }
.fi[data-d="4"] { transition-delay: .4s; }
.fi[data-d="5"] { transition-delay: .5s; }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 22px 0;
  transition: background .5s, padding .4s;
}
.nav.stuck {
  background: rgba(245,237,224,.92);
  backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(28,47,65,.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  transition: color .4s;
}
.nav.stuck .nav__logo { color: var(--navy); }

.nav__menu {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
  margin: 0 clamp(20px, 3vw, 48px);
}
.nav__menu li { white-space: nowrap; }
.nav__menu a {
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav__menu a:hover { color: #fff; }
.nav.stuck .nav__menu a { color: var(--text-mid); }
.nav.stuck .nav__menu a:hover { color: var(--navy); }

.nav__btn {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.nav__btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav.stuck .nav__btn { border-color: var(--navy); color: var(--navy); }
.nav.stuck .nav__btn:hover { background: var(--navy); color: var(--cream); }

/* ── MOBILE MENU ── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  transition: transform .25s, opacity .2s, background .3s;
}
.nav.stuck .nav__burger span { background: var(--navy); }
.nav--open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--navy-deep);
  transition: max-height .35s ease;
}
.nav--open .nav__mobile { max-height: 480px; }
.nav__mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 4px min(24px, 6vw) 20px;
}
.nav__mobile-menu li { border-top: 1px solid rgba(255,255,255,.08); text-align: left; hyphens: none; }
.nav__mobile-menu a {
  display: block;
  padding: 15px 4px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
}
.nav__mobile-menu a:hover { color: #fff; }

@media (max-width: 1180px) {
  .nav__burger { display: flex; }
}
@media (min-width: 1181px) {
  .nav__mobile { display: none; }
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(122,150,170,.06) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(122,150,170,.06) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero__main {
  display: grid;
  place-items: center;
  padding: 110px 0 44px;
  position: relative;
  z-index: 1;
}

.hero__wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-inline: 24px;
}

.hero__kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 7.5rem);
  font-weight: 900;
  font-style: normal;
  line-height: .95;
  color: var(--cream);
  letter-spacing: -.02em;
  margin-bottom: 8px;
  word-break: break-word;
}

.hero__rule {
  width: 40px;
  height: 2px;
  background: var(--cream);
  margin: 28px auto;
  opacity: .35;
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  max-width: 820px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero__tags {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
  margin-bottom: 36px;
}
.hero__tag {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(160,187,200,.7);
  padding: 0 14px;
  border: none;
  background: none;
}
.hero__tag + .hero__tag {
  border-left: 1px solid rgba(160,187,200,.3);
}

.hero__cta {
  display: inline-block;
  background: var(--cream);
  color: var(--navy-deep);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  transition: background .25s;
}
.hero__cta:hover { background: #fff; }

/* ════════════════════════════════
   SECTION BASE
════════════════════════════════ */
.section {
  padding: clamp(28px, 3vw, 48px) 0;
}
.section--cream { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--slate { background: var(--slate-bg); }
.section--navy  { background: var(--navy); }
.section--deep  { background: var(--navy-deep); }

.section__head {
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 100%;
}
.section--navy  .section__title,
.section--deep  .section__title { color: #fff; }

.section__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 100%;
  font-weight: 400;
}
.section--navy  .section__lead { color: rgba(255,255,255,.7); }
.section--deep  .section__lead { color: rgba(255,255,255,.55); }
.section--navy  .eyebrow { color: var(--slate-mid); }
.section--deep  .eyebrow { color: var(--slate-mid); }

.callout {
  margin-top: 40px;
  padding: 28px 36px;
  border-left: 2px solid var(--navy);
  background: var(--cream);
}
.callout p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.55;
}
.callout--slate {
  border-left-color: var(--slate);
  background: var(--slate-light);
}

/* ════════════════════════════════
   КОМАНДА
════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--slate-light);
}
.team-card {
  background: var(--white);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.team-card__accent {
  width: 32px;
  height: 3px;
  background: var(--sage);
  margin-bottom: 24px;
}
.team-card__role {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.team-card__text {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 400;
}
.team-card__text strong { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   НАПРАВЛЕНИЯ ДЕЯТЕЛЬНОСТИ
════════════════════════════════ */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(28,47,65,.12);
  border: 1px solid rgba(28,47,65,.12);
}
.direction-card {
  background: var(--white);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s;
}
.direction-card:hover { background: var(--cream); }
.direction-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.direction-card__icon svg { width: 40px; height: 40px; }
.direction-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.direction-card__text {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--text-mid);
  font-weight: 400;
}

/* ════════════════════════════════
   ФОРМАТ УЧАСТИЯ
════════════════════════════════ */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--slate-light);
}
.format-card {
  background: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .3s;
}
.format-card:hover { background: var(--cream); }
.format-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.format-card__icon svg { width: 44px; height: 44px; }
.format-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.format-card__text {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 400;
}
.format-card__text a { color: var(--navy); }

/* ════════════════════════════════
   МОДЕЛЬ АРХИТЕКТУРА
════════════════════════════════ */
.model-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  padding: 40px;
}
.model-col { padding-right: 48px; }
.model-col__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.4;
}
.model-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.model-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  font-weight: 400;
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  text-align: left;
}
.model-list li::before { content: '→'; color: var(--slate-mid); flex-shrink: 0; margin-top: 1px; }

.model-col--text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 48px;
  padding-right: 0;
  border-left: 1px solid rgba(255,255,255,.14);
}
.model-col--text p {
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(255,255,255,.8);
  font-weight: 300;
  text-align: left;
}

/* ════════════════════════════════
   QUOTE
════════════════════════════════ */
.quote-block {
  padding: 24px 0;
  border-top: 1px solid rgba(28,47,65,.12);
  border-bottom: 1px solid rgba(28,47,65,.12);
  text-align: center;
}
.quote-block p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  text-align: center;
}

/* ════════════════════════════════
   ПРАКТИКА
════════════════════════════════ */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.case-card {
  background: var(--white);
  border: 1px solid rgba(28,47,65,.1);
  padding: clamp(28px, 4vw, 48px);
}
.case-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.case-card__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}
.case-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(28,47,65,.2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.case-card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 22px;
}
.case-card__text {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 400;
}
.case-card__text + .case-card__text { margin-top: 16px; }
.case-card__result {
  margin-top: 24px;
  padding: 20px 28px;
  border-left: 2px solid var(--navy);
  background: var(--cream);
}
.case-card__result-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.case-card__result p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
}

/* ── ACCORDION (mobile-only, see RESPONSIVE section) ── */
.accordion-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0 0 3px;
  margin-top: 4px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  align-self: flex-start;
}
.accordion-toggle::after {
  content: '+';
  font-size: 1.1rem;
  line-height: 1;
}
.accordion-toggle[aria-expanded="true"]::after { content: '−'; }
.case-card .accordion-toggle { margin-top: 14px; margin-bottom: 12px; }
.model-col--text .accordion-toggle { color: rgba(255,255,255,.85); }

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
#contact { background: var(--navy-deep); }
#contact .section__title { color: #fff; }
#contact .eyebrow { color: var(--slate-mid); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-item__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.contact-item a, .contact-item p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.contact-item a:hover { color: #fff; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-status {
  padding: 14px 18px;
  font-size: .85rem;
  line-height: 1.6;
  border-left: 2px solid;
}
.form-status--ok {
  border-color: var(--sage);
  background: rgba(122,155,120,.12);
  color: #d3e2d1;
}
.form-status--error {
  border-color: #b5675a;
  background: rgba(181,103,90,.14);
  color: #ecc4bc;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  padding: 13px 16px;
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  outline: none;
  transition: border-color .2s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: rgba(122,150,170,.5); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.2); }

.btn-submit {
  align-self: flex-start;
  background: var(--cream);
  color: var(--navy-deep);
  border: none;
  padding: 15px 40px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s;
}
.btn-submit:hover { background: #fff; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.35);
}
.footer-copy {
  font-size: .75rem;
  font-weight: 300;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .directions-grid   { grid-template-columns: repeat(2, 1fr); }
  .format-grid       { grid-template-columns: 1fr; }
  .model-layout      { grid-template-columns: 1fr; gap: 32px; }
  .model-col         { padding-right: 0; }
  .model-col--text   { padding-left: 0; border-left: none; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
  .contact-layout    { grid-template-columns: 1fr; gap: 48px; }
  .form-row          { grid-template-columns: 1fr; }

  /* Аккордеон: длинные блоки (кейсы практики, текст модели) свёрнуты по умолчанию */
  .accordion-toggle  { display: inline-flex; }
  .accordion-body    { display: none; }
  .accordion-body.is-open { display: block; }
}

@media (max-width: 1180px) {
  .nav__menu         { display: none; }
}

@media (max-width: 480px) {
  .nav                { padding: 16px 0; }
  .nav.stuck          { padding: 12px 0; }
  .nav__logo          { font-size: 1rem; letter-spacing: .04em; }
  .nav__btn           { padding: 9px 16px; font-size: .62rem; letter-spacing: .08em; }
  .nav__burger        { width: 22px; height: 22px; gap: 4px; }
}

@media (max-width: 640px) {
  .directions-grid   { grid-template-columns: 1fr; }
  .direction-card    { padding: 24px 28px; }
  #format .section__title { margin-bottom: 0; }
  #format .section__head  { margin-bottom: 8px; }
  .format-card       { padding: 24px 32px; }
  .hero__tag + .hero__tag { border-left: none; }
  .hero__tag         { padding: 0 10px; }
  .footer-inner      { flex-direction: column; gap: 10px; }
}
