/* site.css — оформление продуктового лендинга на токенах проекта. */

.site-header__brand { max-width: 440px; }
.site-nav a:last-child { color: var(--accent); font-weight: 600; }

.ai-hero {
  min-height: calc(90svh - 77px);
  display: flex;
  align-items: center;
  padding-block: clamp(42px, 6vh, 72px);
  overflow: hidden;
}
.hero--split .ai-hero__wrap {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 76px);
  width: min(1320px, 100% - var(--gutter) * 2);
}
.ai-hero__text { min-width: 0; }
.ai-hero__audience {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.ai-hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-size: min(clamp(38px, 2.95vw, 43px), 12vw);
  line-height: 1.06;
  text-align: left;
}
.ai-hero .hero__tagline { max-width: 43ch; font-size: clamp(17px, 1.4vw, 19px); }
.ai-hero__actions { align-items: center; gap: 20px 24px; margin-top: 32px; }
.ai-hero__actions .btn { min-height: 50px; padding-inline: 26px; }
.ai-hero__invoice {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 5px;
}
.ai-hero__invoice:hover { text-decoration-color: var(--accent); }

.model-switcher {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid var(--line);
  border-radius: calc(var(--r-card) + 8px);
  background: var(--surface);
  box-shadow: 0 28px 70px -42px rgb(22 27 32 / 55%);
  transform: rotate(1.4deg);
  transform-origin: center;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.model-switcher:hover, .model-switcher:focus-within {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 34px 80px -40px rgb(40 91 197 / 32%);
}
.model-switcher__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}
.model-switcher__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.model-switcher__count::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.model-switcher__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.model-switcher__tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.model-switcher__tab:hover { border-color: var(--accent); color: var(--accent); }
.model-switcher__tab.is-active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.model-switcher__stage { min-height: 306px; padding-top: 22px; }
.model-panel[hidden] { display: none; }
.model-panel { animation: model-panel-in var(--t-slow) var(--ease-out); }
.model-panel__prompt { max-width: 88%; margin-left: auto; }
.model-panel__prompt > span, .model-panel__answer > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}
.model-panel__prompt p {
  margin: 0;
  padding: 12px 15px;
  border-radius: 12px 12px 3px 12px;
  background: var(--accent-wash);
  font-size: 14px;
  line-height: 1.5;
}
.model-panel__answer { max-width: 91%; margin-top: 22px; }
.model-panel__answer p { margin: 0; font-size: 16px; line-height: 1.65; }
.model-visual {
  position: relative;
  min-height: 208px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.model-visual__sheet {
  position: absolute;
  inset: 20px 24px 42px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 8px;
  background: var(--bg);
  transform: rotate(-2deg);
}
.model-visual__shape { position: absolute; display: block; }
.model-visual__shape--one {
  width: 118px;
  height: 118px;
  left: 22%;
  top: 42px;
  border-radius: 50%;
  background: var(--accent-wash);
}
.model-visual__shape--two {
  width: 112px;
  height: 74px;
  right: 20%;
  top: 72px;
  border: 2px solid var(--accent);
  border-radius: 55% 45% 52% 48%;
  transform: rotate(18deg);
}
.model-visual__caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.model-visual--video .model-visual__shape--one { border-radius: 18px 50% 50% 18px; transform: rotate(-12deg); }
.model-visual--video .model-visual__shape--two { border-radius: 50%; transform: rotate(-24deg); }
.model-visual__play {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 22px;
  height: 28px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-40%, -50%);
}
.model-visual__timeline {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 42%, var(--line-strong) 42%);
}
.model-switcher__note { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

@keyframes model-panel-in {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .hero--split .ai-hero__wrap { gap: 34px; }
  .ai-hero h1 { font-size: clamp(36px, 4vw, 42px); }
  .model-switcher__tab { padding-inline: 9px; }
}
@media (max-width: 860px) {
  .ai-hero { min-height: 0; padding-block: 44px 60px; }
  .hero--split .ai-hero__wrap { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .ai-hero h1 { max-width: 14ch; font-size: clamp(38px, 7vw, 56px); }
  .ai-hero .hero__tagline { max-width: 55ch; }
  .model-switcher { width: min(680px, 100%); margin-inline: auto; transform: rotate(.6deg); }
}
@media (max-width: 520px) {
  .site-header__brand { max-width: calc(100% - 50px); font-size: 15px; }
  .ai-hero { padding-block: 34px 50px; }
  .ai-hero__audience { margin-bottom: 13px; font-size: 13px; }
  .ai-hero h1 { margin-bottom: 17px; font-size: clamp(34px, 10.2vw, 43px); }
  .ai-hero .hero__tagline { font-size: 16px; }
  .ai-hero__actions { align-items: stretch; gap: 17px; margin-top: 25px; }
  .ai-hero__actions .btn { width: 100%; }
  .ai-hero__invoice { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .model-switcher { padding: 16px; border-radius: 16px; transform: none; }
  .model-switcher:hover, .model-switcher:focus-within { transform: translateY(-2px); }
  .model-switcher__head { align-items: flex-start; margin-bottom: 16px; font-size: 15px; }
  .model-switcher__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 16px; }
  .model-switcher__tab { min-width: 0; min-height: 44px; padding: 7px 4px; font-size: 11px; }
  .model-switcher__stage { min-height: 300px; padding-top: 18px; }
  .model-panel__prompt { max-width: 94%; }
  .model-panel__answer { max-width: 100%; }
  .model-panel__answer p { font-size: 15px; }
  .model-visual__shape--one { left: 13%; }
  .model-visual__shape--two { right: 10%; }
}
/* Лента моделей: все шесть видны на десктопе, на телефоне листаются свайпом. */
#models, #payment, #contact { scroll-margin-top: 88px; }
.ai-models { padding-top: 48px; }
.ai-models__wrap { width: min(1320px, 100% - var(--gutter) * 2); }
.ai-models h2 { max-width: 18ch; margin-bottom: 34px; }
.ai-models__list {
  display: grid;
  grid-template-columns: 1.35fr .72fr 1.05fr 1.2fr 1fr 1.05fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ai-model-card {
  min-width: 0;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.ai-model-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.ai-model-card h3 { font-size: clamp(19px, 1.75vw, 26px); overflow-wrap: anywhere; }
.ai-model-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Оплата — спокойная типографическая секция без иконок и тарифной сетки. */
.ai-payment__wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 8vw, 116px);
  align-items: start;
}
.ai-payment__text h2 { max-width: 13ch; margin-bottom: 28px; }
.ai-payment__text p { max-width: 40ch; margin-bottom: 18px; font-size: 17px; line-height: 1.65; }
.ai-payment__text p:last-child { margin-bottom: 0; color: var(--muted); }
.ai-payment__methods { display: grid; gap: 16px; }
.ai-payment__method {
  min-height: 178px;
  padding: 28px 30px;
  border-radius: calc(var(--r-card) + 4px);
  background: var(--surface-2);
}
.ai-payment__method:nth-child(2) { margin-left: 42px; }
.ai-payment__method h3 { margin-bottom: 14px; font-size: clamp(21px, 2vw, 28px); }
.ai-payment__method p { margin: 0; color: var(--muted); }
.ai-payment__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.ai-payment__link:hover { text-decoration-color: var(--accent); }

/* Финальный экран — форма доступа там же, куда ведут основные кнопки. */
.ai-access { padding-top: 40px; }
.ai-access__wrap {
  max-width: 1240px;
  padding: clamp(42px, 6vw, 72px);
  border-radius: 24px;
  background: var(--accent-wash);
  text-align: center;
}
.ai-access__wrap h2 { font-size: clamp(32px, 3.8vw, 50px); }
.ai-access__lead { max-width: 52ch; margin: 16px auto 0; color: var(--fg); font-size: 17px; }
.ai-access__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin: 32px auto 20px;
  text-align: left;
}
.ai-access__form .field-row { color: var(--fg); }
.ai-access__form .field { width: 100%; background: var(--bg); }
.ai-access__comment, .ai-access__submit, .ai-access__status { grid-column: 1 / -1; }
.ai-access__submit { justify-self: center; min-width: 230px; min-height: 52px; margin-top: 4px; }
.ai-access__status { margin: 0; text-align: center; }
.ai-access__done { max-width: 680px; margin: 28px auto 20px; background: var(--bg); }
.ai-access__done p { margin: 0; }
.ai-access__note { margin: 0; color: var(--fg); font-size: 13px; }

@media (max-width: 980px) {
  .ai-models__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-model-card { min-height: 150px; }
  .ai-payment__wrap { gap: 42px; }
  .ai-payment__method:nth-child(2) { margin-left: 0; }
}
@media (max-width: 720px) {
  .ai-models { padding-top: 30px; }
  .ai-models h2 { margin-bottom: 26px; }
  .ai-models__list {
    display: flex;
    gap: 12px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    padding-bottom: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .ai-model-card { flex: 0 0 238px; min-height: 164px; scroll-snap-align: start; }
  .ai-model-card:nth-child(even) { flex-basis: 196px; }
  .ai-model-card h3 { font-size: 23px; }
  .ai-payment__wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ai-payment__text h2 { max-width: 16ch; margin-bottom: 20px; }
  .ai-payment__text p { font-size: 16px; }
  .ai-payment__method { min-height: 0; padding: 24px; }
  .ai-access { padding-top: 24px; }
  .ai-access__wrap { padding: 38px 20px; border-radius: 18px; }
  .ai-access__lead { font-size: 16px; }
  .ai-access__form { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .ai-access__comment, .ai-access__submit, .ai-access__status { grid-column: auto; }
  .ai-access__submit { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .model-switcher, .model-switcher__tab, .model-panel, .ai-model-card { animation: none; transition: none; }
  .model-switcher:hover, .model-switcher:focus-within { transform: none; }
}
