/* ---------- Design tokens ---------- */
:root {
  --cream: #f6f1e7;
  --cream-deep: #efe8d8;
  --paper: #fbf8f1;
  --ink: #1c1c1a;
  --ink-soft: #4a4a44;
  --charcoal: #17181a;
  --charcoal-2: #0e0f10;
  --grass: #5a9c3f;
  --grass-soft: #e7f0dc;
  --grass-deep: #45782f;
  --blue: #35548f;
  --blue-light: #7b9fe6;
  --blue-soft: #eaeff6;
  --line: rgba(28, 28, 26, 0.12);
  --shadow: 0 20px 40px rgba(20, 20, 15, 0.12);
  --radius: 18px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.asterisk { color: var(--grass-deep); }

:focus-visible {
  outline: 2px solid var(--grass-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible,
.nav :focus-visible {
  outline-color: var(--grass);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.eyebrow--accent { color: var(--grass-deep); }
.eyebrow--light { color: #cfd0cc; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section__title--light { color: var(--paper); }

.section__lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 44px;
}
.section__lead--light { color: #c7c8c3; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--charcoal);
  padding: 20px 0;
}
.stats-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}
.stats-bar__inner span {
  color: #d8d9d4;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stats-bar__inner span b {
  color: var(--blue-light);
  font-weight: 700;
}
.stats-bar__inner span:not(:last-child)::after {
  content: '·';
  margin-left: 18px;
  color: #5c5d58;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.nav__logo-sep { color: var(--grass); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a { color: #c7c8c3; transition: color .2s ease; }
.nav__links a:hover { color: var(--grass); }
.nav__cta {
  background: var(--grass);
  color: var(--charcoal) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
}
.nav__cta { transition: background .2s ease, transform .15s ease; }
.nav__cta:hover { background: var(--grass-deep); }
.nav__cta:active,
.btn:active { transform: scale(.97); }
.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--grass);
  color: var(--charcoal);
}
.btn--primary:hover { background: var(--grass-deep); color: var(--paper); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 28px 64px;
}
.hero--wide { padding-bottom: 56px; }
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero__lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 32px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--cream-deep); }
.section--dark {
  background: var(--charcoal);
  color: var(--paper);
  border-top-color: var(--charcoal-2);
}
.section--center { text-align: center; }
.section--center .section__lead,
.section--center .callout { margin-left: auto; margin-right: auto; }
.section--center .grid { max-width: 680px; margin: 0 auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards (about) ---------- */
.card--outline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card--outline:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--outline h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 4px 0 12px; }
.card--outline p:last-child { color: var(--ink-soft); margin: 0; }

.callout {
  margin-top: 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  background: var(--grass-soft);
  border-radius: 100px;
  padding: 16px 26px;
  display: inline-block;
}
.callout--light { background: rgba(255,255,255,0.08); color: #d8d9d4; }

/* ---------- Directions ---------- */
.direction {
  background: var(--grass-soft);
  border: 1px solid rgba(69, 120, 47, 0.16);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.direction:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.direction__icon { color: var(--grass-deep); margin-bottom: 14px; }
.direction__num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--grass-deep);
}
.direction h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.direction p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.timeline__step {
  border-top: 3px solid var(--grass-deep);
  padding-top: 18px;
}
.timeline__step:nth-child(even) { border-top-color: var(--ink); }
.timeline__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  margin-bottom: 14px;
}
.timeline__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.timeline__step p { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 10px; }
.timeline__time { font-size: 12px; font-weight: 700; color: var(--grass-deep); }

/* ---------- Solutions (dark section) ---------- */
.solution {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 26px;
  color: #d8d9d4;
  transition: transform .25s ease, background .25s ease;
}
.solution:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.solution svg { color: var(--grass); margin-bottom: 12px; }
.solution h3 { font-family: var(--font-display); font-weight: 600; color: var(--paper); font-size: 16.5px; margin: 0 0 8px; }
.solution p { font-size: 14px; margin: 0; color: #adaea9; }
.solution:last-child { grid-column: span 2; border-color: rgba(123, 159, 230, 0.35); }
.solution:last-child svg { color: var(--blue-light); }

/* ---------- Photo collage (polaroid-style, used for duo-photo & cases) ---------- */
.photo-collage {
  position: relative;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}
.photo-collage__frame {
  overflow: hidden;
  background: var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .3s ease;
}
.photo-collage__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(55%) contrast(1.08);
}
.photo-collage::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  width: 64px; height: 26px;
  background: rgba(246, 241, 231, 0.75);
  border: 1px solid rgba(28,28,26,0.08);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 1;
}

/* ---------- Duo photo (О сотрудничестве) ---------- */
.duo-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.duo-photo .photo-collage { width: 220px; transform: rotate(-3deg); }
.duo-photo .photo-collage:last-child { margin-left: -56px; transform: rotate(3deg); z-index: 1; }
.duo-photo .photo-collage:first-child .photo-collage__frame { transform: rotate(-1deg); }
.duo-photo .photo-collage:last-child .photo-collage__frame { transform: rotate(1deg); }
.duo-photo .photo-collage__frame { aspect-ratio: 4/4.8; }

/* ---------- Team ---------- */
.person {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person__photo--round {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.person:hover .person__photo--round { transform: scale(1.05); }
.person__photo--round img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); }
.person h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.person__role { color: var(--grass-deep); font-weight: 600; font-size: 14px; margin: 0 0 18px; }
.person__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.person__tags li {
  background: var(--grass-soft);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.person__stat {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.person__stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
  margin-right: 6px;
}

/* ---------- Cases ---------- */
.case {
  background: transparent;
  border-radius: var(--radius);
}
.case .photo-collage { margin-bottom: 22px; }
.case .photo-collage__frame { aspect-ratio: 16/11; border-radius: 12px; }
.case:nth-child(even) .photo-collage__frame { transform: rotate(1.5deg); }
.case:hover .photo-collage__frame { transform: rotate(0deg) scale(1.02); }
.case h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.case p:last-child { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---------- Pricing ---------- */
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.price:hover { transform: translateY(-4px); border-color: var(--grass); }
.price--accent {
  background: var(--charcoal);
  color: var(--paper);
  border-color: var(--charcoal);
}
.price--accent:hover { border-color: var(--grass); }
.price__name { font-family: var(--font-body); font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.price__value { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 4px; }
.price--accent .price__value { color: var(--grass); }
.price__time { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 20px; font-style: italic; }
.price--accent .price__time { color: #a9aaa5; }
.price ul { display: flex; flex-direction: column; gap: 10px; }
.price li {
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  text-align: left;
}
.price--accent li { color: #c7c8c3; }
.price li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grass-deep);
}
.price--accent li::before { background: var(--grass); }
.price__footnote { margin-top: 24px; font-size: 12.5px; color: var(--ink-soft); }

.price:last-child { border-color: rgba(53, 84, 143, 0.25); }
.price:last-child:hover { border-color: var(--blue); }
.price:last-child .price__value { color: var(--blue); }
.price:last-child li::before { background: var(--blue); }

/* ---------- Contacts ---------- */
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px;
  text-align: left;
  transition: transform .25s ease, background .25s ease;
}
.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.contact-card h3 { font-family: var(--font-display); font-weight: 600; color: var(--paper); font-size: 22px; margin: 4px 0 20px; }
.contact-card__links { display: flex; flex-direction: column; gap: 12px; }
.contact-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  transition: color .2s ease;
}
.contact-card__links a:hover { color: var(--grass); }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal-2);
  color: #82837e;
  padding: 40px 0;
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav__logo--footer { color: var(--paper); font-size: 20px; margin-bottom: 6px; }
.footer p { margin: 0; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 28px 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__cta { margin-top: 6px; text-align: center; }
  .nav__burger { display: block; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 20px 40px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .price--accent { order: -1; }
  .stats-bar__inner span:not(:last-child)::after { margin-left: 10px; }
  .duo-photo .photo-collage { width: 150px; }
  .duo-photo .photo-collage:last-child { margin-left: -40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
