/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

body {
  background: linear-gradient(180deg, #1b0e14 0%, #3a1823 100%);
  background-attachment: fixed; /* Чтобы фон стоял на месте при скролле */
}

/* Светящиеся пятна (Glow) */
.glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px); /* Сильное размытие */
  z-index: 0;          /* Слой позади текста */
  pointer-events: none; /* Чтобы сквозь них можно было кликать */
  animation: drift 15s ease-in-out infinite alternate; /* Сама анимация */
}

/* Первое пятно (Розовое, сверху слева) */
.g1 {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(255,107,158,0.4), transparent 70%);
}

/* Второе пятно (Оранжевое, снизу справа) */
.g2 {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(255,163,122,0.3), transparent 70%);
  animation-delay: -5s; /* Двигается в другом ритме */
}

/* Эффект шума (зернистость) */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05; /* Еле заметный */
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8L3N2Zz4=');
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.1); }
}
:root{
  --bg-1:#1b0e14;
  --bg-2:#28121a;
  --bg-3:#3a1823;
  --accent:#ff6b9e;
  --accent-2:#ff9b7a;
  --accent-3:#ffd1a6;
  --ink:#f9e9ee;
  --muted:#f6d9e3;
  --glass: rgba(255,255,255,0.10);
  --glass-2: rgba(255,255,255,0.16);
  --shadow: 0 20px 60px rgba(255, 86, 128, 0.15), 0 6px 20px rgba(0,0,0,0.25);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --ring: linear-gradient(140deg, rgba(255,107,158,0.65), rgba(255,168,119,0.55));
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body {
  margin:0;
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(1180px, 92%); margin-inline:auto; position:relative; z-index:2; }

/* Background canvas */
.bg-canvas{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0.55;
  mix-blend-mode:screen;
}

/* Decorative glows */
.glow{
  position:fixed;
  width:740px; height:740px;
  filter: blur(120px);
  z-index:1; opacity:0.45; pointer-events:none;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,107,158,0.55), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(255,163,122,0.5), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow.g2{ left:auto; right:-220px; top:15vh; animation-duration:22s; opacity:0.35; }
.glow.g1{ left:-260px; top:-120px; }
@keyframes drift{
  0%{ transform: translate3d(0,0,0) scale(1); }
  100%{ transform: translate3d(40px, -30px,0) scale(1.08); }
}

/* Subtle noise overlay */
.noise{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:
    radial-gradient(currentColor 0.7px, transparent 0.7px),
    radial-gradient(currentColor 0.7px, transparent 0.7px);
  background-position: 0 0, 10px 10px;
  background-size:20px 20px;
  color:#ff9bb4;
}

/* Header */
.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(24,12,18,0.65), rgba(24,12,18,0.25) 60%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; font-weight:800; font-size:1.15rem; letter-spacing:.2px;
}
.brand-badge{
  width:34px; height:34px; display:grid; place-items:center; border-radius:12px;
  background: linear-gradient(135deg, rgba(255,107,158,0.3), rgba(255,168,119,0.25));
  border:1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px rgba(255,107,158,0.15) inset, 0 2px 9px rgba(0,0,0,0.25);
}
.logo-text{
  background: linear-gradient(90deg, #fff, #ffd5e4 40%, #ffe5d2);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-family: "Playfair Display", serif; font-weight:700; font-size:1.25rem; letter-spacing:.5px;
}

.nav-links{ display:flex; gap:24px; align-items:center; }
.nav-links a{
  font-size:.95rem; color:var(--muted);
  padding:8px 10px; border-radius:10px; transition:all .25s ease;
}
.nav-links a:hover{ color:#fff; background:rgba(255,255,255,0.06); }
.download-nav{ display:flex; gap:10px; align-items:center; }

.btn{
  appearance:none; border:0; cursor:pointer; user-select:none;
  font-weight:700; letter-spacing:.2px; color:#1f0d14;
  padding:12px 18px; border-radius:14px; position:relative; overflow:hidden;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-1px); filter: saturate(110%); }
.btn:active{ transform: translateY(0); }
.btn-light{
  background: linear-gradient(90deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75));
  color:#31131d;
}
.btn-ghost{
  background: linear-gradient(#ffffff12, #ffffff12) padding-box, var(--ring) border-box;
  border:1px solid transparent; color:#fff;
}

.hamburger {
  display: none; /* Скрываем на ПК */
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  /* Flex свойства переносим в мобильную версию */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* 2. Общие стили для линий */
.hamburger span,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block; /* Обязательно для псевдо-элементов */
  width: 20px;
  height: 2px;
  background: #ffd8e6;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 3. Анимация в крестик */
.hamburger.active span {
  opacity: 0; /* Прячем среднюю линию */
}

.hamburger.active::before,
.hamburger.active::after {
  /* Для анимации мы временно делаем линии абсолютными, чтобы наложить их друг на друга */
  position: absolute;
  top: 50%;
  left: 50%;
}

.hamburger.active::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.active::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hero */
.hero{ position:relative; padding: 72px 0 40px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background: linear-gradient(#ffffff14,#ffffff14) padding-box, var(--ring) border-box;
  border:1px solid transparent; color:#ffdfeb; font-size:.85rem; font-weight:600; letter-spacing:.2px;
}
.eyebrow .dot{ width:8px; height:8px; border-radius:50%; background: radial-gradient(circle, #ff6b9e, #ff9b7a); box-shadow:0 0 12px rgba(255,107,158,0.7); }
.hero h1{
  margin:16px 0 14px; line-height:1.05; font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight:800;
  letter-spacing:-.5px; color:#fff;
}
.hero h1 .grad{
  background: linear-gradient(90deg, #ffdce8, #fff, #ffe0c9);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 10px 40px rgba(255, 120, 155, 0.25);
}
.sub{
  color:#f6d9e3; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height:1.65; opacity:.95;
  max-width: 640px;
}
.cta-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:22px; }
.safe-row{ display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; color:#ffdce8; font-size:.95rem; }
.chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:12px;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10);
}
.chip svg{ opacity:.9; }

/* Device mockups */
.devices{ position:relative; display:flex; align-items:center; justify-content:center; gap:24px; }
.device{
  position:relative; border-radius:28px; padding:14px; background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow); overflow:hidden;
  transform: translateZ(0);
}
.device.phone {
  width: 240px; /* Явно задаем ширину */
  height: 480px;
  border-radius: 32px;
  animation: float 8s ease-in-out infinite;
  position: relative; /* Добавлено для стабильности */
  transform: translateZ(0);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 14px;
}

.device.laptop {
  width: 420px; /* Явно задаем ширину */
  height: 280px;
  border-radius: 18px;
  padding-top: 36px;
  animation: float 9s 1.2s ease-in-out infinite;
  position: relative; /* Добавлено для стабильности */
  transform: translateZ(0);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 14px;
}
@keyframes float{ 0%{ transform: translateY(0)} 50%{ transform: translateY(-10px)} 100%{ transform: translateY(0)} }

.screen{
  position:absolute; inset:14px; border-radius:22px; overflow:hidden; background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.12);
}
.statusbar{
  position:absolute; top:8px; left:50%; transform:translateX(-50%); width:40%; height:6px; border-radius:999px;
  background: rgba(255,255,255,0.2);
}
.ui-mock{ position:absolute; inset:0; padding:16px; display:flex; flex-direction:column; gap:10px; }
.bubble{
  max-width:80%; padding:10px 12px; border-radius:16px; font-size:.9rem; line-height:1.3;
  border:1px dashed rgba(255,255,255,0.25); color:#ffeef6; backdrop-filter: blur(2px);
}
.bubble.me{ align-self:flex-end; background: rgba(255, 163, 122, 0.18); border-color: rgba(255, 203, 173, 0.45); }
.bubble.u{ align-self:flex-start; background: rgba(255, 107, 158, 0.18); border-color: rgba(255, 162, 197, 0.45); }
.match-card{
  margin-top:auto; padding:10px; border-radius:14px; display:flex; gap:10px; align-items:center; background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
}
.avatar{ width:36px; height:36px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #ff6b9e, #ff9b7a); border:1px solid rgba(255,255,255,0.25); }
.tiny{ font-size:.78rem; color:#ffe6ef; opacity:.9; }

.window-top{
  position:absolute; top:0; left:0; right:0; height:36px; display:flex; align-items:center; gap:8px; padding:0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border-bottom:1px solid rgba(255,255,255,0.14);
}
.dot-btn{ width:10px; height:10px; border-radius:50%; background:#ffd1df; opacity:.85; }
.tab{
  padding:8px 12px; border-radius:10px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); font-size:.85rem;
}
.window-body{ position:absolute; inset:36px 12px 12px 12px; border-radius:12px; overflow:hidden; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); display:grid; grid-template-columns: 160px 1fr; gap:10px; padding:10px; border:1px solid rgba(255,255,255,0.1); }
.sidebar{ display:flex; flex-direction:column; gap:8px; }
.contact{ display:flex; gap:8px; align-items:center; padding:8px; border-radius:10px; border:1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }
.contact .avatar{ width:28px; height:28px; }
.chat{ border-radius:12px; padding:10px; border:1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); display:flex; flex-direction:column; gap:8px; }

/* Features */
.section{ padding: 64px 0; position:relative; }
.sec-head{ text-align:center; margin-bottom:28px; }
.sec-head h2{
  font-family: "Playfair Display", serif; letter-spacing:.2px; font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin:0 0 10px; color:#fff;
}
.sec-head p{ margin:0; color:#ffd7e5; opacity:.95; }
.features{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card{
  position:relative; padding:18px; border-radius:var(--radius-lg);
  background: linear-gradient(#ffffff12, #ffffff12) padding-box, var(--ring) border-box;
  border:1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 32px rgba(0,0,0,0.25), 0 6px 24px rgba(255, 86, 128, 0.08);
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 18px 60px rgba(255, 86, 128, 0.20), 0 10px 28px rgba(0,0,0,0.25); }
.icon{
  width:42px; height:42px; display:grid; place-items:center; border-radius:12px; margin-bottom:10px;
  background: linear-gradient(135deg, rgba(255,107,158,0.30), rgba(255,168,119,0.25));
  border:1px solid rgba(255,255,255,0.18);
}
.card h3{ margin:0 0 6px; font-size:1.05rem; }
.card p{ margin:0; color:#ffdbe8; font-size:.95rem; line-height:1.6; }

/* Platforms */
.platform{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:32px; align-items:center;
  padding: 18px; border-radius:var(--radius-xl);
  background: linear-gradient(#ffffff10, #ffffff10) padding-box, var(--ring) border-box;
  border:1px solid transparent;
  box-shadow: var(--shadow);
}
.platform .title{ margin:0 0 10px; font-size:1.6rem; }
.check{ display:flex; align-items:flex-start; gap:10px; margin:8px 0; color:#ffe6ef; }
.check svg{ flex: none; margin-top:2px; }
.platform .actions{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.platform .mock{ justify-self:center; }

/* Testimonials */
.slider{
  position:relative; overflow:hidden; border-radius:var(--radius-xl);
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
}
.slides{ display:flex; transition: transform .6s ease; }
.slide{ min-width:100%; padding:26px; display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:center; }
.review{
  padding:16px; border-radius:14px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.16);
}
.stars{ color:#ffd399; letter-spacing:1px; margin-bottom:8px; }
.reviewer{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.r-avatar{ width:42px; height:42px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #ff6b9e, #ff9b7a); border:1px solid rgba(255,255,255,0.22); }
.slider-dots{
  position:absolute; inset:auto 0 10px 0; display:flex; justify-content:center; gap:8px;
}
.dot{ width:8px; height:8px; border-radius:999px; background: rgba(255,255,255,0.35); transition: all .2s ease; }
.dot.active{ width:22px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* FAQ */
.faq-grid {
  display: flex;             /* Используем Flex вместо Grid */
  flex-direction: column;    /* Строго вертикально */
  gap: 15px;                 /* Отступы между вопросами */
  max-width: 800px;          /* Ограничиваем ширину, чтобы не было слишком растянуто */
  margin: 0 auto;            /* Центруем весь блок */
}
details{
  width: 100%;
  border-radius:14px; border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); padding:12px 14px;
}
summary{ cursor:pointer; font-weight:600; display:flex; align-items:center; gap:10px; list-style:none; }
summary::-webkit-details-marker{ display:none; }
details[open]{ background: rgba(255,255,255,0.08); }
.faq-a{ color:#ffdbe8; padding:8px 0 0 2px; line-height:1.65; }

/* CTA */
.cta{
  text-align:center; padding:34px; border-radius:22px; margin-top:12px;
  background: linear-gradient(150deg, rgba(255,107,158,0.22), rgba(255,168,119,0.20));
  border:1px solid rgba(255,255,255,0.22); box-shadow: var(--shadow);
}
.cta h3{ margin:0 0 8px; font-size:1.7rem; }
.cta p{ margin:0 0 16px; color:#ffe3ee; }

.foot {
  justify-content: center !important;
  gap: 40px !important;         /* Уменьшил расстояние между столбцами (было 80) */
  padding-top: 20px !important; /* Уменьшил отступ сверху */
}

.foot-col {
  gap: 5px !important;          /* Уменьшил расстояние между ссылками внутри столбца */
}

.foot-col h4 {
  margin-bottom: 5px !important; /* Уменьшил отступ от заголовка */
}

.foot-col:nth-child(1) {
  display: none !important;     /* Логотип скрыт навсегда */
}

/* 2. ИСПРАВЛЕНИЕ FAQ (Строго в столбик) */
.faq-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

/* 3. МОБИЛЬНАЯ ВЕРСИЯ (ПОЛНЫЙ ФИКС) */
@media (max-width: 850px) {
  
  /* Центровка текстов */
  .hero-grid, .section, .platform, .foot, .sec-head {
    text-align: center !important;
  }
  .sub, .cta-row, .safe-row, .foot-col, .check, .platform .actions {
    justify-content: center !important;
  }
    .hero-grid .devices {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important; 
    margin-top: 40px !important;
    gap: 50px !important;
  }
    .device.laptop {
    width: 100% !important;
    max-width: 360px !important;
    height: 220px !important;
    margin: 0 auto !important;
    padding-top: 30px !important; /* Место под "светофор" сверху */
    position: relative !important;
    flex: none !important;
    right: auto !important; top: auto !important;
  }

  /* Самое важное: чиним сетку внутри экрана ноутбука */
  .device.laptop .window-body {
    display: block !important;       /* Убираем Grid, который ломался */
    padding: 10px !important;
    position: absolute !important;   /* Растягиваем на весь экран */
    inset: 30px 10px 10px 10px !important;
  }
  
  /* Скрываем боковую панель контактов на телефоне (места мало) */
  .device.laptop .sidebar {
    display: none !important;
  }
  
  /* Растягиваем чат на всю ширину */
  .device.laptop .chat {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  /* --- ЧИНИМ ТЕЛЕФОН --- */
  .device.phone {
    width: 220px !important;
    height: 440px !important;
    margin: 0 auto !important;
    position: relative !important;
    flex: none !important;
    left: auto !important; bottom: auto !important;
  }

  /* Порядок блоков в секциях Windows/Android */
  .platform {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
}
/* Scroll progress */
.progress{
  position:fixed; inset:0 auto auto 0; height:3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  width:0%; z-index:12; box-shadow: 0 0 12px rgba(255,107,158,0.7);
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(90%, 500px);
  background: linear-gradient(135deg, rgba(58, 24, 35, 0.95), rgba(40, 18, 26, 0.95));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(255, 107, 158, 0.2);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #ffdce8, #ffe0c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-close {
  background: none;
  border: none;
  color: #ffd1df;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.modal-content { padding: 24px; color: #ffdbe8; line-height: 1.6; }
.modal-content p { margin: 0 0 16px; }
.modal-content ul { margin: 12px 0; padding-left: 20px; }
.modal-content li { margin-bottom: 8px; color: #ffd1df; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-item i { color: #ff6b9e; width: 20px; text-align: center; }

/* Chatbot */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 158, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(255, 107, 158, 0.6); }

.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: linear-gradient(135deg, rgba(58, 24, 35, 0.98), rgba(40, 18, 26, 0.98));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(255, 107, 158, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chatbot-container.active { opacity: 1; visibility: visible; transform: translateY(0); }

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.chatbot-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ffdce8, #ffe0c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chat-close {
  background: none;
  border: none;
  color: #ffd1df;
  font-size: 24px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.message {
  display: flex;
  gap: 12px;
  max-width: 90%;
  animation: slideIn 0.3s ease;
}
.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b9e, #ff9b7a);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.message .avatar svg {
  width: 24px;
  height: 24px;
}
.message.user .avatar {
  background: linear-gradient(135deg, #4a90e2, #2a5caa);
}
.message.user .avatar svg {
  circle {
    fill: #fff;
    stroke: #2a5caa;
    stroke-width: 1.5;
  }
}
.message .text {
  padding: 12px 16px;
  border-radius: 18px;
  color: #fff;
  line-height: 1.4;
  font-size: 0.95rem;
  max-width: calc(100% - 44px);
}
.message.bot .text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-left-radius: 4px;
}
.message.user .text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-top-right-radius: 4px;
}
.suggestions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
.suggestions button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffe6ef;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}
.suggestions button:hover {
  background: rgba(255, 107, 158, 0.15);
  border-color: rgba(255, 107, 158, 0.3);
  transform: translateX(4px);
}

.email-form {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 107, 158, 0.08);
  margin: 0 20px 10px;
  border-radius: 12px;
  display: none;
}
.email-form.active { display: block; animation: slideIn 0.3s ease; }
.form-title {
  color: #ffdce8;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}
.email-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.email-form button {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.email-form button:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255, 107, 158, 0.4); }
.note {
  font-size: 0.8rem;
  color: #ffd1a6;
  text-align: center;
  opacity: 0.9;
  margin-top: 6px;
}

.chatbot-input {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.chatbot-input input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}
.chatbot-input button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chatbot-input button:hover { transform: scale(1.05); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- MOBILE STYLES START HERE --- */

/* For tablets and smaller desktops */
@media (max-width: 1000px) {
  /* Stack hero section items vertically */
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 50px;
  }
  /* Stack the two device mockups in the hero section */
  .hero-grid .devices {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  /* Stack platform sections (Android/Windows) vertically */
  .platform { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  /* Stack testimonials vertically */
  .slide { 
    grid-template-columns: 1fr; 
  }
  .window-body { 
    grid-template-columns: 1fr; 
  }
  /* Re-order elements in Windows section for better mobile flow */
  #windows .platform > .mock {
    order: 2; /* Image goes second */
  }
  #windows .platform > div:not(.mock) {
    order: 1; /* Text goes first */
  }
}

/* For smaller tablets and large phones */
@media (max-width: 800px) {
  .features { 
    grid-template-columns: 1fr 1fr; 
  }
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 62px; 
    left: 0; 
    right: 0; 
    padding: 10px 4%; 
    background: rgba(24,12,18,0.96); 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
  }
  .nav-links.open { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
  }
  .hamburger { 
    display: flex; 
  }
}

/* For mobile phones */
/* --- МОБИЛЬНАЯ ВЕРСИЯ (Fix сплющивания) --- */
@media (max-width: 560px) {
  /* Выстраиваем всё в одну колонку */
  .features, .faq-grid, .platform { 
    grid-template-columns: 1fr; 
  }

  /* Центруем тексты в начале */
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
  }
  .sub, .cta-row, .safe-row { 
    justify-content: center; 
  }
  .cta-row { margin-bottom: 40px; }

  /* === ГЛАВНОЕ ИСПРАВЛЕНИЕ УСТРОЙСТВ === */
  .hero-grid .devices {
     flex-direction: column; /* Друг под другом */
     align-items: center;
     height: auto;           /* Высота авто */
     gap: 60px;
     padding-bottom: 20px;
  }

  /* ТЕЛЕФОН: Жесткие размеры, чтобы не плющило */
  .device.phone {
    position: relative;
    width: 220px !important;    /* Фиксированная ширина */
    height: 440px !important;   /* Фиксированная высота */
    min-height: 440px;          /* Запрет на сплющивание */
    flex: 0 0 auto;             /* Запрет на flex-сжатие */
    left: auto; bottom: auto;
    margin: 0 auto;
  }

  /* НОУТБУК: Жесткие размеры */
  .device.laptop {
    position: relative;
    width: 100% !important;
    max-width: 360px;
    height: 220px !important;   /* Фиксированная высота */
    min-height: 220px;          /* Запрет на сплющивание */
    flex: 0 0 auto;             /* Запрет на flex-сжатие */
    right: auto; top: auto;
    margin: 0 auto;
    padding-top: 25px;
  }
  
  /* Убираем лишнее внутри ноута на мобиле */
  .window-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  
  /* Чат-бот не перекрывает контент */
  .chatbot-wrapper { bottom: 80px; right: 20px; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .glow, .device, .slides, .chatbot-container { 
    animation: none !important; 
  }
  .bg-canvas { 
    opacity: .35; 
  }
}
/* Windows-specific styles */
.device.laptop {
  width: 480px;
  height: 320px;
}

@media (max-width: 560px) {
  .device.laptop {
    width: 100% !important;
    max-width: 380px;
    height: 250px !important;
  }
}

/* Download buttons enhancement */
#download .btn {
  min-width: 200px;
  margin: 5px;
}

#download .btn i {
  margin-right: 8px;
}

/* Version badge */
.version-badge {
  display: inline-block;
  background: rgba(255, 107, 158, 0.2);
  border: 1px solid rgba(255, 107, 158, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #ffd1df;
}
/* ===== FOOTER STYLES ===== */
.site-footer {
  background: linear-gradient(180deg, rgba(26, 12, 18, 0.95) 0%, rgba(36, 18, 24, 0.98) 100%);
  border-top: 1px solid rgba(255, 107, 158, 0.2);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Основная сетка */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Колонки */
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ffd1df;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff6b9e;
}

/* Бренд колонка */
.brand-col .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-col .brand-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 158, 0.3), rgba(255, 168, 119, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-col .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #ffd5e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-description {
  color: #ffd1df;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Социальные ссылки */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #ff9b7a;
  font-size: 1.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.social-links a:hover {
  color: #ff6b9e;
  transform: translateY(-2px);
}

/* Нижняя часть футера */
.footer-bottom {
  border-top: 1px solid rgba(255, 107, 158, 0.2);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #ffb0c0;
  font-size: 0.9rem;
}

.copyright .heart {
  color: #ff6b9e;
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #ffb0c0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ff6b9e;
}

/* Адаптивность */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .brand-col {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Для модальных окон (если нужны) */
.modal-trigger {
  cursor: pointer;
}