/* Токены из Figma: AI Khan, страница «Готово · Сайт · ai-khan.uz», брендбук 2026 */
:root {
  --ink: #0e1716;
  --graphite: #5b6472;
  --line: #d9dee3;
  --paper: #f4f6f7;
  --white: #ffffff;
  --primary: #0e5e55;
  --deep: #003d3a;
  --accent: #2a9078;
  --link: #1f7a66;
  --tint50: #e6f4f1;
  --tint100: #bfe3db;
  --tint300: #7cc4b4;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-alt: "Montserrat Alternates", sans-serif;

  --container: 1160px;
  --gutter: max(20px, calc((100% - var(--container)) / 2));
  --radius-card: 16px;
  --radius-btn: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.section { padding: 104px var(--gutter); }
.section--paper { background: var(--paper); }

/* Надзаголовок секции */
.eyebrow {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  max-width: 760px;
}
.section-lead { font-size: 19px; line-height: 1.55; color: var(--graphite); max-width: 680px; }

/* Название продукта по правилу брендбука: первая часть SemiBold, вторая Light в цвете Primary */
.brand-name { font-family: var(--font-alt); font-weight: 600; line-height: normal; color: var(--ink); }
.brand-name span { font-weight: 300; color: var(--primary); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  padding: 14px 24px;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn--s { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--deep); }
.btn--ghost { border: 1.5px solid var(--line); padding: 12.5px 22.5px; color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Чипы */
.chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  background: var(--tint50);
  color: var(--deep);
}
.chip--muted { background: none; border: 1px solid var(--line); color: var(--graphite); }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 140.21px; height: 24px; }
.logo i { width: 1px; height: 18px; background: var(--line); }
.logo span { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--graphite); }
.nav { display: flex; gap: 32px; font-weight: 500; font-size: 15px; line-height: 1.5; }
.nav a:hover { color: var(--primary); }

/* Первый экран */
.hero { display: flex; align-items: center; gap: 64px; padding: 96px var(--gutter) 88px; }
.hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: 58px; line-height: 1.08; }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Иллюстрация первого экрана */
.hero-visual { flex: none; width: 520px; }
/* Фон картинки светлый: multiply сливает его с белым фоном страницы */
.hero-visual img { width: 100%; height: auto; border-radius: var(--radius-card); mix-blend-mode: multiply; }

/* Принцип */
.principle { display: flex; gap: 96px; align-items: flex-start; padding: 96px var(--gutter); background: var(--deep); color: var(--white); }
.principle-title { flex: none; font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1.08; }
.principle-title span { display: block; }
.principle-title .hl { color: var(--tint300); }
.principle-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.principle-body .eyebrow { color: var(--tint300); }
.principle-quote { font-size: 22px; line-height: 1.45; }
.principle-body hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--tint300); }
.principle-note { font-family: var(--font-alt); font-weight: 500; font-size: 18px; line-height: 1.5; color: var(--tint100); }

/* Направления */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.direction { display: flex; flex-direction: column; gap: 16px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.direction .brand-name { font-size: 30px; }
.direction h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.5; }
.direction p { font-size: 16px; line-height: 1.5; color: var(--graphite); }
.dash-list { display: flex; flex-direction: column; gap: 10px; }
.dash-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.dash-list li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--accent); }

/* Продукты */
.products { display: flex; gap: 24px; align-items: stretch; }
.product-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.product-main .brand-name { font-size: 40px; }
.product-sign { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--graphite); }
.product-desc { font-size: 17px; line-height: 1.55; }
.dot-lists { display: flex; flex-wrap: wrap; gap: 10px 40px; }
.dot-list { display: flex; flex-direction: column; gap: 10px; }
.dot-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.5; }
.dot-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.product-free { font-size: 14px; line-height: 1.5; color: var(--graphite); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 17px; }
.product-side { flex: none; width: 440px; display: flex; flex-direction: column; gap: 24px; }
.product-small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.product-small .brand-name { font-size: 26px; }
.product-small .product-sign { font-size: 12px; }
.product-small p:last-child { font-size: 14px; line-height: 1.5; color: var(--graphite); }

/* Материалы: пины */
.pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pin { position: relative; height: 420px; padding: 32px; border-radius: var(--radius-card); overflow: hidden; }
.pin--deep { background: var(--deep); }
.pin--primary { background: var(--primary); }
.pin--light { background: var(--tint50); }
.pin-kind { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--tint100); }
.pin--light .pin-kind { color: var(--deep); }
.pin h3 { max-width: 300px; margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--white); }
.pin--light h3 { color: var(--ink); }
.pin hr { width: 100%; max-width: 306px; height: 1px; margin: 24px 0 0; border: 0; background: var(--tint300); }
.pin-text { max-width: 300px; margin-top: 23px; font-size: 15px; line-height: 1.5; color: var(--deep); }
.pin-btn {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}
.pin-btn:hover { background: var(--primary); }
.pin-mark { position: absolute; left: 200px; top: 230px; width: 236.36px; height: 260px; }
.pin-sign {
  position: absolute;
  left: 32px;
  top: 376px;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tint100);
}
.pin--light .pin-sign { color: var(--graphite); }

/* Автор */
.author { display: flex; align-items: center; gap: 72px; }
.facts {
  flex: none;
  width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  line-height: 1.5;
}
.fact { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--white); }
.fact b { font-family: var(--font-display); font-weight: 600; font-size: 34px; }
.fact span { font-size: 14px; color: var(--graphite); }
.author-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.author-text h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.15; }
.author-text p:not(.eyebrow) { font-size: 18px; line-height: 1.55; color: var(--graphite); }

/* Контакты */
.contact-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-rows { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; line-height: 1.5; }
.contact-row > span { flex: none; width: 100px; font-family: var(--font-alt); font-weight: 500; font-size: 14px; color: var(--graphite); }
.contact-row a { font-weight: 600; font-size: 26px; }
.contact-row a:hover { color: var(--primary); }
.copy-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.contact-mark { flex: none; width: 80px; height: 88px; }

/* Подвал */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
}
.footer img { width: 105.16px; height: 18px; }
.footer-links { justify-self: end; }
.footer-links a:hover { color: var(--primary); }

/* Планшет */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .hero { gap: 40px; }
  .hero-visual { width: 440px; }
  .hero-title { font-size: 48px; }
  .principle { gap: 56px; }
  .principle-title { font-size: 46px; }
  .product-side { width: 360px; }
  .author { gap: 48px; }
  .facts { width: 420px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 64px; }
  .hero-visual { align-self: center; width: 100%; max-width: 520px; }
  .principle { flex-direction: column; gap: 32px; }
  .directions { grid-template-columns: 1fr; }
  .products { flex-direction: column; }
  .product-side { width: 100%; }
  .pins { grid-template-columns: 1fr; }
  .author { flex-direction: column; align-items: stretch; }
  .facts { width: 100%; }
}

/* Телефон */
@media (max-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .header { padding-top: 16px; padding-bottom: 16px; }
  .logo i,
  .logo span { display: none; }
  .hero-title { font-size: 34px; }
  .hero-lead { font-size: 17px; }
  .principle { padding-top: 64px; padding-bottom: 64px; }
  .principle-title { font-size: 36px; }
  .principle-quote { font-size: 19px; }
  .section-title,
  .author-text h2 { font-size: 30px; }
  .section-lead { font-size: 17px; }
  .direction,
  .product-main { padding: 24px; }
  .product-main .brand-name { font-size: 34px; }
  .pin { height: 380px; }
  .pin-sign { top: auto; bottom: 26px; }
  .fact { padding: 20px; }
  .fact b { font-size: 28px; }
  .contact-box { flex-direction: column; align-items: flex-start; }
  .contact-row { gap: 4px 12px; }
  .contact-row > span { width: 100%; }
  .contact-row a { font-size: 20px; word-break: break-all; }
  .contact-mark { width: 56px; height: 62px; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-self: start; }
}
