/* ===== Цвета бренда Amber Vox (с палитры «цвета amber vox.jpg») ===== */
:root {
  --bg:     #F9F8F6;  /* фон сайта */
  --card:   #FFFFFF;  /* карточки */
  --amber:  #FFC300;  /* главный цвет: логотип, кнопки, меню */
  --brown:  #352700;  /* доп. цвет */
  --blue:   #2563EA;  /* акцент 1 */
  --coral:  #DF7A5E;  /* акцент 2 */
  --text:   #18181A;  /* основной текст */

  --muted:  #5F5B53;  /* второстепенный текст */
  --line:   #E9E5DD;  /* тонкие линии и рамки */
  --kiwi:   #39E03A;  /* зелёный — цвет Kiwi */

  --radius: 28px;
  --shadow: 0 10px 30px rgba(53, 39, 0, .07);
  --display: "Oswald", "Arial Narrow", sans-serif;  /* узкий шрифт для меню и подписей */
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ===== Общие элементы ===== */
h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 40px; }

/* Слова, выделенные янтарным «маркером» */
.accent {
  background: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 92%, transparent 92%);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.tag {
  font-family: var(--display);
  font-weight: 500;
  color: var(--coral);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.lead { font-size: 20px; color: var(--muted); max-width: 600px; }
.lead--section { font-size: 18px; margin: -20px 0 40px; }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--text);
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid var(--amber);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 195, 0, .4); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); box-shadow: none; }
.btn--big { padding: 18px 34px; font-size: 18px; }
.btn--small { padding: 9px 20px; font-size: 15px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.section { padding: 110px 0; }
.section--alt { background: #F2EFE9; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--text);  /* чёрная шапка */
  border-bottom: 2px solid var(--amber);
}
/* Три колонки: логотип слева, меню по центру, Instagram справа */
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.logo { justify-self: start; }
.logo img { width: 150px; }
.header__insta { justify-self: end; }
.nav { display: flex; gap: 48px; }
.nav a {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--amber);
  transition: color .2s;
}
.nav a:hover { color: #FFFFFF; }

/* ===== Первый экран ===== */
.hero {
  padding: 130px 0 140px;
  background:
    radial-gradient(680px 420px at 85% 15%, rgba(255, 195, 0, .18), transparent 70%),
    radial-gradient(520px 380px at 0% 100%, rgba(37, 99, 234, .07), transparent 70%);
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero .lead { margin-bottom: 40px; }

/* ===== Карточки продуктов ===== */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.product {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(53, 39, 0, .12); }
.product--rebecca:hover { border-color: rgba(223, 122, 94, .6); }
.product--kiwi:hover { border-color: rgba(57, 224, 58, .6); }

/* Верхняя «сцена» с фото или примером */
.product__stage {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.product__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% center;
  transition: transform .5s;
}
.product--rebecca:hover .product__photo { transform: scale(1.04); }

.product--kiwi .product__stage {
  display: grid; place-items: center;
  padding: 28px;
  background:
    radial-gradient(300px 220px at 50% 50%, rgba(57, 224, 58, .2), transparent 70%),
    #04170A;
}

/* Окошко-терминал Kiwi */
.terminal {
  width: 100%; max-width: 420px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(57, 224, 58, .35);
  border-radius: 14px;
  padding: 14px 18px 18px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px; line-height: 1.7;
  color: #BFEFC0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.terminal__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: rgba(191, 239, 192, .5); font-size: 12px; }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(57, 224, 58, .35); }
.terminal__bar span { margin-left: 8px; }
.terminal__me { color: #fff; }
.terminal__ok { color: var(--kiwi); }
.terminal__cursor span {
  display: inline-block; width: 8px; height: 15px;
  background: var(--kiwi); vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Нижняя часть карточки */
.product__body {
  flex: 1;
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px 36px 36px;
}
.product__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.product__logo { width: 220px; margin-left: -6px; }
.product__logo--kiwi { width: 120px; margin-left: 0; }
.product__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.product__text { color: var(--muted); }
.product__note {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; line-height: 1.55;
}
.product--kiwi .buttons { margin-top: auto; }

.badge {
  display: inline-block;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.badge--lime { background: var(--amber); color: var(--text); }
.badge--outline { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.badge--kiwi { background: rgba(57, 224, 58, .14); color: #1E8F20; border: 1px solid rgba(57, 224, 58, .45); }

.checks { list-style: none; display: grid; gap: 8px; }
.checks li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 12px; }
.checks--kiwi li::before { color: #1E8F20; }

/* ===== Услуги ===== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  transition: border-color .25s, transform .25s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(37, 99, 234, .35); }
.service__title { font-size: 26px; }
.service__text { color: var(--muted); }
.service__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(37, 99, 234, .1); color: var(--blue);
}
.service__icon--pink { background: rgba(223, 122, 94, .14); color: var(--coral); }
.service .badge { align-self: flex-start; }

/* Главная карточка — боты: на всю ширину, справа пример переписки */
.service--main {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 44px;
  border: 2px solid var(--amber);
  background:
    radial-gradient(420px 300px at 85% 50%, rgba(255, 195, 0, .14), transparent 70%),
    var(--card);
}
.service--main:hover { border-color: var(--amber); }
.service--main .service__title { font-size: clamp(28px, 3.4vw, 38px); }
.service__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Пример переписки с ботом в стиле светлого Telegram */
.botchat {
  background: #E6EBEE;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(24, 24, 26, .12);
  min-width: 0;
}
.botchat__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.botchat__bar b { display: block; font-size: 15px; }
.botchat__bar small { color: var(--blue); font-size: 12px; }
.botchat__avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber); color: var(--text);
  font-weight: 800;
}
.botchat__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 22px; }
.bmsg {
  max-width: 85%;
  padding: 10px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.bmsg--me  { align-self: flex-end; background: #E1F7CB; border-bottom-right-radius: 5px; }
.bmsg--bot { align-self: flex-start; background: var(--card); border-bottom-left-radius: 5px; }
.botchat__keys { display: flex; gap: 8px; align-self: flex-start; }
.botchat__keys span {
  padding: 7px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .75); color: var(--blue);
  font-size: 14px; font-weight: 600;
}
.services__cta { justify-content: center; margin-top: 36px; }

/* ===== Контакты ===== */
.contacts {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(255, 195, 0, .2), transparent 70%),
    var(--card);
}
.contacts .lead { margin-inline: auto; }
.contacts__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contacts__row:last-child { margin-bottom: 0; }
.mail {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.mail__address { font-weight: 600; color: var(--blue); word-break: break-all; }
.mail__address:hover { text-decoration: underline; }
.mail__copy {
  border: none; border-radius: 999px;
  padding: 10px 16px;
  background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: background .2s;
}
.mail__copy:hover { background: #FFF3CC; }

.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { width: 140px; }
.footer__copy { color: var(--muted); font-size: 14px; }

/* ===== Планшет ===== */
@media (max-width: 900px) {
  .hero { padding: 80px 0 90px; }
  .products { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service--main { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}

/* ===== Телефон ===== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  /* На телефоне: логотип и Instagram сверху, меню второй строкой по центру */
  .header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo insta" "nav nav";
    height: auto; gap: 8px 16px; padding: 12px 0 10px;
  }
  .logo { grid-area: logo; }
  .header__insta { grid-area: insta; }
  .nav { grid-area: nav; justify-content: center; gap: 28px; }
  .logo img { width: 124px; }
  .nav a { font-size: 15px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .lead { font-size: 17px; }
  .product__stage { height: 300px; }
  .product__body { padding: 26px 22px 28px; }
  .service, .service--main { padding: 28px 22px; }
  .service__title { font-size: 22px; }
  .contacts { padding: 52px 20px; }
  .contacts .btn--big { width: 100%; text-align: center; }
  .mail { flex-direction: column; padding: 14px; border-radius: 20px; gap: 10px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Для тех, у кого в системе отключена анимация */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
