/* ============================================
   Kinniko — AI Product Studio
   Shared stylesheet for all 3 pages
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FAF8F3;
  color: #464745;
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 140px 0;
}

.section--tight {
  padding: 96px 0;
}

/* ---------- Typography ---------- */
.serif {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #464745;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: #DB9D81;
  margin-bottom: 24px;
  display: inline-block;
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: #464745;
  max-width: 640px;
}

.muted {
  color: #8a8a82;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 14px 22px;
  background: rgba(250, 248, 243, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 198, 190, 0.4);
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(70, 71, 69, 0.05);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 72px;
}

.nav__logo img {
  height: 72px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  color: #464745;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__link:hover {
  background: rgba(219, 157, 129, 0.12);
}

.nav__link--active {
  color: #DB9D81;
  background: rgba(219, 157, 129, 0.1);
}

.nav__cta {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  background: #464745;
  color: #FAF8F3 !important;
  transition: background 0.18s ease, transform 0.18s ease;
  margin-left: 8px;
}

.nav__cta:hover {
  background: #2e2f2d;
  transform: translateY(-1px);
}

/* ---------- Hero — Main ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero__title {
  font-size: clamp(60px, 9vw, 148px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-weight: 500;
}

.hero__title .accent {
  color: #DB9D81;
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: #464745;
  margin-top: 32px;
  max-width: 560px;
  font-family: 'DM Sans', sans-serif;
}

.hero__illo {
  position: relative;
  width: 100%;
  margin-right: -60px;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero__illo svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---------- Hero — inner pages ---------- */
.hero-inner {
  padding: 220px 0 80px;
}

.hero-inner__title {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-inner__title .accent {
  color: #DB9D81;
  font-style: italic;
}

.hero-inner__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 560px;
  margin-top: 28px;
  line-height: 1.5;
}

/* ---------- Path cards ---------- */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.path-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px 36px;
  box-shadow: 0 2px 0 rgba(70, 71, 69, 0.04), 0 20px 40px -20px rgba(70, 71, 69, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #DB9D81, #E6B8A1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 0 rgba(70, 71, 69, 0.04), 0 30px 60px -20px rgba(70, 71, 69, 0.18);
}

.path-card:hover::before {
  transform: scaleX(1);
}

.path-card__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #DB9D81;
  font-weight: 500;
  margin-bottom: 20px;
}

.path-card__title {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.path-card__desc {
  color: #6a6b68;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
  flex: 1;
}

.path-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: #464745;
  transition: gap 0.22s ease, color 0.22s ease;
}

.path-card:hover .path-card__arrow {
  color: #DB9D81;
  gap: 14px;
}

/* ---------- About block ---------- */
.about {
  background: #fff;
  border-radius: 32px;
  padding: 96px 80px;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(219, 157, 129, 0.18), transparent 70%);
  pointer-events: none;
}

.about__title {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 14ch;
  margin-bottom: 36px;
  line-height: 1.05;
}

.about__body {
  font-size: 19px;
  line-height: 1.65;
  max-width: 720px;
  color: #4f4f4d;
}

.about__body p + p {
  margin-top: 22px;
}

/* ---------- Stack strip ---------- */
.stack {
  padding: 80px 0;
  border-top: 1px solid rgba(200, 198, 190, 0.5);
  border-bottom: 1px solid rgba(200, 198, 190, 0.5);
}

/* Добавляем это, чтобы контейнер не ограничивал ширину списка */
.stack .container {
  width: 100%;
}

.stack__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #DB9D81;
  font-weight: 500;
  margin-bottom: 28px;
  text-align: left; /* Гарантируем левый край */
}

.stack__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ВОТ ЭТО центрирует элементы */
  align-items: center;
  gap: 14px 28px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -0.015em;
  font-style: italic;
  color: #464745;
  width: 100%; /* Растягиваем на всю ширину, чтобы было куда центровать */
}

.stack__items span.dot {
  color: #DB9D81;
  font-style: normal;
  font-size: 0.6em;
  opacity: 0.6;
}

/* ---------- Contact ---------- */
.contact {
  padding: 140px 0 80px;
  text-align: center;
}

.contact__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #DB9D81;
  font-weight: 500;
  margin-bottom: 28px;
}

.contact__email {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.02em;
  color: #464745;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #DB9D81;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.contact__email:hover {
  color: #DB9D81;
}

.contact__email:hover::after {
  transform: scaleX(1);
}

/* ---------- Products page ---------- */
.product {
  background: #fff;
  border-radius: 32px;
  padding: 72px 72px 64px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(70, 71, 69, 0.03), 0 30px 60px -30px rgba(70, 71, 69, 0.14);
}

.product__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product__name {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.product__name .accent {
  color: #DB9D81;
  font-style: italic;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(219, 157, 129, 0.14);
  color: #c27a5a;
  white-space: nowrap;
}

.status--dev {
  background: rgba(200, 198, 190, 0.3);
  color: #6a6b68;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.status--dev .status__dot {
  animation: none;
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.product__body {
  font-size: 19px;
  line-height: 1.65;
  max-width: 760px;
  color: #4f4f4d;
}

.product__body p + p {
  margin-top: 20px;
}

.product__body strong {
  color: #464745;
  font-weight: 600;
}

.product__meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 198, 190, 0.5);
  font-size: 14px;
  color: #8a8a82;
  letter-spacing: 0.02em;
}

.product__meta span.sep {
  color: #DB9D81;
  margin: 0 10px;
}

/* ---------- Services page ---------- */
.what-we-do {
  padding-top: 40px;
}

.what-we-do__title {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 40px;
  max-width: 18ch;
  line-height: 1.05;
}

.what-we-do__body {
  font-size: 19px;
  line-height: 1.65;
  color: #4f4f4d;
  max-width: 720px;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.step {
  background: #fff;
  border-radius: 24px;
  padding: 44px 36px 40px;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 0 rgba(70, 71, 69, 0.03), 0 20px 40px -24px rgba(70, 71, 69, 0.12);
}

.step:hover {
  transform: translateY(-4px);
}

.step__num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #DB9D81;
  font-style: italic;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.step__title {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1.1;
}

.step__body {
  color: #6a6b68;
  font-size: 15px;
  line-height: 1.6;
}

.proof {
  background: #464745;
  color: #FAF8F3;
  border-radius: 32px;
  padding: 96px 80px;
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(219, 157, 129, 0.28), transparent 70%);
  pointer-events: none;
}

.proof__eyebrow {
  color: #DB9D81;
}

.proof h2,
.proof__title {
  color: #FAF8F3;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 40px;
  max-width: 20ch;
}

.proof__list {
  list-style: none;
  display: grid;
  gap: 24px;
  max-width: 820px;
}

.proof__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.55;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.12);
}

.proof__item:last-child {
  border-bottom: none;
}

.proof__item::before {
  content: '—';
  color: #DB9D81;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.proof__kicker {
  margin-top: 40px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: #E6B8A1;
}

.fit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.fit__pill {
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(200, 198, 190, 0.6);
  font-size: 15px;
  font-weight: 500;
  color: #464745;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fit__pill:hover {
  background: #DB9D81;
  color: #fff;
  border-color: #DB9D81;
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid rgba(200, 198, 190, 0.5);
  margin-top: 80px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__brand img {
  height: 72px;
  width: auto;
}

.footer__meta {
  font-size: 14px;
  color: #8a8a82;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link:hover {
  color: #DB9D81;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 14px;
  }

  .nav__links {
    gap: 0;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav__cta {
    display: none;
  }

  .hero {
    min-height: 100vh;
    padding: 110px 0 60px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__title {
    font-size: clamp(52px, 14vw, 84px);
  }

  .hero__illo {
    min-height: 340px;
    margin-right: 0;
    order: -1;
    opacity: 0.95;
  }

  .hero-inner {
    padding: 140px 0 40px;
  }

  .hero-inner__title {
    font-size: clamp(44px, 12vw, 72px);
  }

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

  .path-card {
    padding: 36px 28px 32px;
    min-height: 0;
  }

  .about {
    padding: 56px 28px;
    border-radius: 24px;
  }

  .product {
    padding: 44px 28px 40px;
    border-radius: 24px;
  }

  .product__head {
    flex-direction: column;
    gap: 16px;
  }

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

  .proof {
    padding: 56px 28px;
    border-radius: 24px;
  }

  .contact {
    padding: 100px 0 60px;
  }

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav__logo,
  .nav__logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .nav__logo,
  .nav__logo img {
    height: 34px;
  }
}
