/* ================================================
   VneHaosa — главная страница бренда
   styles.css — Redesign v2
   ================================================ */

/* ================================================
   CSS ПЕРЕМЕННЫЕ
   ================================================ */
:root {
  /* Цвета (неизменны) */
  --bg:          #F5F6F2;
  --surface:     #FFFFFF;
  --accent-bg:   #E4EAE0;
  --border:      #E0E6DC;
  --green-dark:  #2E4A35;
  --heading:     #22331F;
  --green:       #4F7A57;
  --text:        #52614F;
  --muted:       #7A887A;
  --light-green: #C9D9CE;
  --copper:      #B06A3C;

  /* Радиусы */
  --radius-btn:  8px;
  --radius-card: 20px;
  --radius-block: 20px;

  /* Ритм — увеличен с 80 до 120px */
  --section-gap: 120px;

  /* Easing (Emil Kowalski) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ================================================
   KEYFRAMES
   ================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;          /* было 16px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ================================================
   TYPOGRAPHY
   Tight tracking на крупных размерах — как Linear/Raycast
   ================================================ */
h1, h2, h3, h4 {
  font-family: 'Onest', sans-serif;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* было clamp(2rem,5vw,3.25rem) */
  font-weight: 700;
  letter-spacing: -0.035em;              /* было 0 */
  line-height: 1.06;                     /* было 1.2 */
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem); /* было clamp(1.5rem,3vw,2.25rem) */
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

p { color: var(--text); }

/* Метка секции — uppercase label перед h2 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ================================================
   LAYOUT HELPERS
   Контейнер шире, padding больше
   ================================================ */
.container {
  max-width: 1200px;   /* было 1100px */
  margin: 0 auto;
  padding: 0 48px;     /* было 0 24px */
}

.section {
  padding: var(--section-gap) 0;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: opacity 200ms var(--ease-out), transform 160ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: 0.82; }
}

.btn:active { transform: scale(0.97); opacity: 0.9; }

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}

.btn-copper {
  background: var(--copper);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid rgba(46, 74, 53, 0.3);
}

/* ================================================
   HEADER
   Стеклянный эффект — стандарт 2025–26
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 242, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(224, 230, 220, 0.75);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;          /* было 66px */
}

/* Лого */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

/* Навигация */
.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: -0.005em;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-links a:hover { color: var(--heading); }
}

/* Бургер */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-dark);
  padding: 4px;
}

/* Мобильное меню */
.header__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
}

.header__mobile-menu.is-open { display: flex; }

.header__mobile-menu a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.header__mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 8px;
  padding-bottom: 0;
}

.header__mobile-menu .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ================================================
   HERO
   2-колоночный layout: текст + декоративный UI-мок
   ================================================ */
.hero {
  padding: 144px 0 120px;  /* было 96px 0 80px */
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  /* убран max-width: 700px */
}

/* --- Левая колонка --- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-bg);
  border-radius: 100px;
  padding: 5px 13px 5px 10px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeUp 500ms var(--ease-out) 0ms both;
}

.hero__title {
  margin-bottom: 24px;
  animation: fadeUp 500ms var(--ease-out) 80ms both;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.72;
  animation: fadeUp 500ms var(--ease-out) 160ms both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 500ms var(--ease-out) 240ms both;
}

.hero__link {
  font-size: 0.9375rem;
  color: var(--green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.005em;
}

.hero__link i {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero__link:hover i { transform: translateX(5px); }
}

/* --- Правая колонка: декоративный мок --- */
.hero__visual {
  animation: fadeUp 600ms var(--ease-out) 200ms both;
}

.hero__mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 40px rgba(34, 51, 31, 0.07),
    0 1px 3px  rgba(34, 51, 31, 0.04);
}

/* Titlebar в стиле macOS */
.hero__mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero__mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero__mock-dot:nth-child(1) { background: #FF5F56; }
.hero__mock-dot:nth-child(2) { background: #FFBD2E; }
.hero__mock-dot:nth-child(3) { background: #27C93F; }

.hero__mock-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: -0.005em;
}

/* Список файлов */
.hero__mock-list {
  padding: 6px 0;
}

.hero__mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  color: var(--text);
  transition: background 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero__mock-row:hover { background: var(--bg); }
}

.hero__mock-row--removed {
  opacity: 0.36;
}

.hero__mock-row--removed .hero__mock-name {
  text-decoration: line-through;
  color: var(--muted);
}

.hero__mock-row i {
  flex-shrink: 0;
  color: var(--green);
}

.hero__mock-row--removed i {
  color: var(--muted);
}

.hero__mock-name {
  flex: 1;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.hero__mock-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.hero__mock-tag--dup {
  background: rgba(176, 106, 60, 0.12);
  color: var(--copper);
}

.hero__mock-tag--ok {
  background: var(--accent-bg);
  color: var(--green);
}

/* Футер мока */
.hero__mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
  color: var(--muted);
}

.hero__mock-stat {
  color: var(--green);
  font-weight: 600;
}

/* ================================================
   TRUST STRIP
   Горизонтальная полоса вместо трёх отдельных карточек
   ================================================ */
.trust {
  padding: 0 0 var(--section-gap);
}

.trust__strip {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.trust__fact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.01em;
  transition: background 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .trust__fact:hover { background: var(--bg); }
}

.trust__fact i {
  flex-shrink: 0;
  color: var(--green);
}

.trust__sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ================================================
   PRODUCTS
   ================================================ */
.products {
  padding: var(--section-gap) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products__header {
  margin-bottom: 52px;
}

.products__header h2 {
  margin-bottom: 12px;
}

.products__header p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 480px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;          /* было 30px 26px */
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-out),
              box-shadow 220ms var(--ease-out),
              border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(46, 74, 53, 0.09);
    border-color: rgba(79, 122, 87, 0.4);
  }
}

.product-card--soon { opacity: 0.5; }

.product-card__icon {
  width: 52px;                 /* было 48px */
  height: 52px;
  background: var(--accent-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 20px;
}

/* Тонкая горизонтальная линия — внутренняя иерархия карточки */
.product-card__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.product-card__name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.product-card__status--available {
  background: var(--accent-bg);
  color: var(--green);
}

.product-card__status--soon {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.product-card__link {
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.005em;
}

.product-card__link i {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-card__link:hover i { transform: translateX(4px); }
}

/* ================================================
   PHILOSOPHY
   Асимметричная сетка 1.15/0.85 вместо 1/1
   ================================================ */
.philosophy {
  padding: var(--section-gap) 0;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* было 1fr 1fr */
  gap: 80px;                              /* было 56px */
  align-items: start;
}

.philosophy__content h2 {
  margin-bottom: 32px;
}

.philosophy__content p {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.78;
  margin-bottom: 20px;
}

.philosophy__content p:last-child { margin-bottom: 0; }

.philosophy__quote {
  background: var(--green-dark);
  border-radius: var(--radius-block);
  padding: 40px 36px;         /* было 36px 32px */
  position: sticky;
  top: 80px;
}

/* Линия вместо кавычки — чище */
.philosophy__quote-mark {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 24px;
}

.philosophy__quote p {
  font-size: 1.125rem;
  color: var(--light-green);
  line-height: 1.68;
  font-style: italic;
  letter-spacing: -0.01em;
}

.philosophy__quote-caption {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: rgba(201, 217, 206, 0.55);
  font-style: normal;
  font-weight: 500;
  display: block;
  letter-spacing: 0.03em;
}

/* ================================================
   CTA
   Больше воздуха, крупнее заголовок
   ================================================ */
.cta {
  padding: 140px 0;           /* было 80px 0 */
  background: var(--accent-bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta__inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta__inner h2 {
  margin-bottom: 16px;
}

.cta__inner p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--green-dark);
  color: var(--light-green);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.015em;
}

.footer__brand-tagline {
  font-size: 0.875rem;
  color: rgba(201, 217, 206, 0.65);
  line-height: 1.65;
  max-width: 220px;
  margin-bottom: 20px;
}

.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 500;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__tg:hover { color: var(--light-green); }
}

.footer__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col ul a {
  font-size: 0.875rem;
  color: rgba(201, 217, 206, 0.65);
  letter-spacing: -0.005em;
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__col ul a:hover { color: #fff; }
}

.footer__bottom {
  border-top: 1px solid rgba(201, 217, 206, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(201, 217, 206, 0.38);
}

/* ================================================
   ACCESSIBILITY — prefers-reduced-motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:    0.01ms !important;
    animation-delay:       0.01ms !important;
    transition-duration:   0.01ms !important;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Планшет — hero схлопывается, контейнер чуть уже */
@media (max-width: 1024px) {
  .container { padding: 0 36px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual { max-width: 540px; }
  .hero__subtitle { max-width: 560px; }
}

/* 900px */
@media (max-width: 900px) {
  :root { --section-gap: 96px; }

  .philosophy__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .philosophy__quote { position: static; }

  /* Trust strip — в столбик */
  .trust__strip {
    flex-direction: column;
  }

  .trust__sep {
    width: auto;
    height: 1px;
  }

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

/* Мобильный */
@media (max-width: 720px) {
  :root { --section-gap: 72px; }

  .container { padding: 0 20px; }

  .header__nav    { display: none; }
  .header__burger { display: flex; }

  .hero { padding: 80px 0 64px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Маленький экран */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
