

/* ...весь твой существующий CSS остаётся без изменений... */



/* ...медиа-правила и т.п.... */



:root{
  --brand: #ba2865;         /* магента фон */
  --ink: #ffffff;
  --glass-bg: rgba(255,255,255,0.12);
  --glass-br: rgba(255,255,255,0.35);
  --glass-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--brand);
  text-align: center;
}

/* Global layout */
main { display: block; }
.section{
  padding: 72px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title{
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 0 0 12px;
}
.section-text{
  max-width: 820px;
  margin: 0 auto 24px auto;
  line-height: 1.7;
  opacity: .95;
}

/* Hero */
.hero{
  padding: 100px 20px 56px;
  position: relative;
  overflow: hidden;
}
.title{
  margin: 20px auto 10px;
  max-width: 900px;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.12;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.subtitle{
  margin: 10px auto 26px;
  max-width: 780px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #ffe6f3;
}

.separator {
  height: 5px;
  background: linear-gradient(to right, #ff7e5f, #feb47b); /* градиентная полоса */
  margin: 40px 0;
  border-radius: 3px;
}

/* Y logo with offset blocks */
.logo-wrap{ position: relative; display: inline-block; margin-bottom: 14px; }
.logo-y{
  display: inline-block;
  width: 84px; height: 84px;
  font-weight: 900; font-size: 64px; line-height: 84px;
  background: #000; color: #fff; border-radius: 4px;
  position: relative; z-index: 2;
  box-shadow: 0 10px 16px rgba(0,0,0,.35);
}
.logo-shadow{
  position: absolute; inset: 0; border-radius: 4px; background: rgba(0,0,0,.28);
  filter: blur(0.5px);
}
.logo-shadow.left { transform: translateX(-6px); }
.logo-shadow.right{ transform: translateX(6px); }

/* Cards & partners */
.cards{
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap: 16px;
  margin-top: 18px;
}
.card{
  padding: 20px 18px;
  border-radius: 18px;
  text-align: center;
}
.card h3{ margin: 0 0 6px; font-size: 20px; }
.card p{ margin: 0; opacity: .95; }

.glass{
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-container {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin: 30px auto;
  width: 90%;
  max-width: 500px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
}

.form-container h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: bold;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: background 0.3s, transform 0.2s;
}

.form-container input::placeholder,
.form-container textarea::placeholder,
.form-container select {
  color: rgba(255, 255, 255, 0.7);
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.form-container button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.form-container button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.03);
}

/* Glass buttons */
.btn-row{
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center;
  margin-top: 18px;
}
.btn-glass{
  --pad-x: 18px; --pad-y: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 16px;
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient( to bottom right, rgba(255,255,255,.16), rgba(255,255,255,.08) );
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.27);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .6s ease;
  opacity: 0;          /* появление управляем JS через .visible */
}
.reveal.visible .btn-glass{ opacity: 1; }
.btn-glass:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.33); }

/* Feature list */
.feature-list{
  list-style: none; padding: 0; margin: 10px auto 0; max-width: 760px;
  display: grid; gap: 10px;
}
.feature-list li{
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
  opacity: 0; /* плавное появление пунктов */
  transition: opacity .6s ease;
}
.reveal.visible .feature-list li{ opacity: 1; }

/* Partners deco */
.partners .card{
  display: grid; place-items: center;
  grid-auto-flow: column; gap: 10px;
}
.partner-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  opacity: .9;
}

/* Footer + socials */
footer {
  background: rgba(0, 0, 0, 0.15);
  padding: 30px 10px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9em;
  color: #ccc;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}
.footer-link:hover {
  color: white;
  background: rgba(255,255,255,0.2);
}

.footer-copy {
  font-size: 0.8em;
  color: #bbb;
}

/* контейнер */
.spoiler {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 12px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
  overflow: hidden;
}

/* кнопка-заголовок */
.spoiler-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  outline: none;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.spoiler-toggle:hover {
  color: #ffeb3b;
}

/* скрытый контент */
.spoiler-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  font-size: 14px;
  color: #f0f0f0;
  padding-top: 6px;
}

.divider {
  border: none;        /* убираем стандартную */
  height: 2px;         /* толщина линии */
  background: #ccc;    /* цвет */
  margin: 40px 0;      /* отступы сверху и снизу */
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  font-weight: bold;
  margin: 40px 0;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ccc;
}

.divider-text:not(:empty)::before {
  margin-right: 10px;
}

.divider-text:not(:empty)::after {
  margin-left: 10px;
}

.glass-card {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: fadeIn 0.6s ease;
}

.glass-card input, .glass-card textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
}

button {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: rgba(255,255,255,0.35);
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {opacity:0; transform:translateY(20px);}
  to {opacity:1; transform:translateY(0);}
}

.socials{
  display:flex; gap: 12px; justify-content:center; align-items:center; margin: 12px 0 6px;
}
.social{
  display: inline-flex; width: 40px; height: 40px; border-radius: 12px;
  align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease;
}
.social:hover{ transform: translateY(-2px); background: rgba(255,255,255,.22); }
.svg{ width: 22px; height: 22px; display: block; }
.copyright{ display:block; opacity:.9; }

/* Scroll reveal (без «вылетов», только мягкое проявление/скейл) */
.reveal{
  opacity: 0;
  transform: scale(.98);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.visible{
  opacity: 1;
  transform: scale(1);
}
.reveal .stagger{ transition: opacity .7s ease, transform .7s ease; opacity: 0; transform: scale(.98); }
.reveal.visible .stagger{ opacity: 1; transform: scale(1); }

/* Футер */


/* ПК-версия */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }
  header h1 { font-size: 3.5em; }
  header p { font-size: 1.4em; }
  .btn { font-size: 1.1em; padding: 14px 30px; }
  main h2 { font-size: 2.4em; }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal .stagger, .btn-glass, .feature-list li { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* === Enhancements: glass buttons, logo float, footer glass, VK icon fix === */
.logo{
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35)) drop-shadow(0 0 10px rgba(255,255,255,0.25));
  animation: logo-float 4.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes logo-float{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-10px) }
}

/* Generic interactive */
button, .btn, .btn-glass, a.btn, .social, .cta, .primary-btn, .secondary-btn {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease, opacity .25s ease;
  will-change: transform, background-color, box-shadow;
}

/* Glass look */
.btn-glass, .footer .btn-glass, .social{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Hover/active lift and whitening */
button:hover, .btn:hover, .btn-glass:hover, a.btn:hover, .cta:hover, .primary-btn:hover, .secondary-btn:hover {
  background: rgba(255,255,255,0.95);
  color: #111 !important;
  border-color: rgba(255,255,255,0.95);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}
button:active, .btn:active, .btn-glass:active, a.btn:active, .cta:active, .primary-btn:active, .secondary-btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* Footer socials as glass pills */
.social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}
.social:hover{ color: #111; }
.social .svg{ width: 22px; height: 22px; display:block; }

/* Pressed visual (для мобильных, см. JS-обработчик) */
.pressed { transform: translateY(1px) scale(.98); box-shadow: 0 8px 18px rgba(0,0,0,0.28) !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo, button, .btn, .btn-glass, .social { animation: none !important; transition: none !important; transform: none !important; }
}