/* ДИОЛ-ЮГ — стили */

/* Шрифт лежит на своём сервере: не зависим от доступности Google Fonts */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #1d3e61;
  --navy-dark: #152a45;
  --teal: #40b5c4;
  --teal-light: #5ec9d6;
  --red: #c0392b;
  --red-hover: #a93226;
  --gray-bg: #f4f7fa;
  --gray-text: #5a6474;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(29, 62, 97, 0.12);
  --radius: 10px;
  --font: 'Manrope', 'Segoe UI', sans-serif;

  /* Фирменный градиент MAX — снят с иконки приложения */
  --max-gradient: linear-gradient(45deg, #0fb9f8 0%, #395dfa 42%, #7316fa 72%, #9f12fb 100%);
}

/* Логотип MAX: белый «пузырь», вырезанный из иконки приложения */
.max-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.channel-btn .max-icon,
.fab-btn .max-icon { width: 24px; height: 24px; }

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

/* display:flex у кнопок иначе перебивает атрибут hidden */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: #1e2a3a;
  line-height: 1.65;
}

a { color: var(--teal); transition: color 0.2s, background 0.2s; }
a:hover:not(.btn):not(.brand):not(.messenger-btn):not(.channel-btn):not(.fab-btn) { color: var(--red); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Typography */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.brand-accent { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}
.btn-primary:hover,
.btn-primary:focus { background: var(--red-hover); color: var(--white) !important; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover,
.btn-teal:focus { background: #359aa8; color: var(--white) !important; }

.btn-ghost {
  background: var(--gray-bg);
  color: var(--navy);
  border-color: #dde4ec;
}
.btn-ghost:hover,
.btn-ghost:focus { background: #e8eef5; color: var(--navy) !important; }

.btn-accent-cta {
  background: var(--red);
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
  text-decoration: none;
}
.btn-accent-cta:hover,
.btn-accent-cta:focus {
  background: var(--red-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-full { width: 100%; }

.btn-icon svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: #a8b8cc;
  font-size: 0.82rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a { color: #d0dae8; text-decoration: none; }
.top-bar a:hover { color: var(--teal-light); }

.top-contacts { display: flex; gap: 20px; flex-wrap: wrap; }

/* Header */
.header {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid #e8edf3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(29, 62, 97, 0.08);
}

.brand-logo-img {
  height: 56px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
}

.brand-icon { width: 56px; height: 56px; flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--gray-text);
  max-width: 220px;
  line-height: 1.35;
}

.header-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Nav */
.nav-wrap {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active { background: var(--red); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 12px;
}

.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/hero-lab.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(21, 42, 69, 0.92) 0%, rgba(29, 62, 97, 0.75) 45%, rgba(64, 181, 196, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 80px 0;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(64, 181, 196, 0.25);
  border: 1px solid rgba(64, 181, 196, 0.5);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-messengers span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-right: 4px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.messenger-btn:hover { transform: translateY(-2px); opacity: 0.95; color: var(--white); }

.messenger-btn--tg { background: #229ed9; color: var(--white); }
.messenger-btn--wa { background: #25d366; color: var(--white); }
.messenger-btn--max { background: var(--max-gradient); color: var(--white); }
.messenger-btn--call { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

.messenger-btn svg { width: 18px; height: 18px; }

/* Sections */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29, 62, 97, 0.18);
}

.cat-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #e8eef3;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.cat-card:hover .cat-card-img img { transform: scale(1.06); }

.cat-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.cat-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 16px;
}

.catalog-grid--featured { margin-bottom: 48px; }

/* Promo blocks (как на lineug.ru) */
.promo-section { padding-top: 56px; padding-bottom: 56px; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.promo-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.promo-card--accent {
  border-top-color: var(--red);
  border: 2px solid var(--red);
  background: var(--white);
  box-shadow: 0 6px 28px rgba(192, 57, 43, 0.15);
}

.promo-card--accent h3 { color: var(--navy); }

.promo-card--accent p {
  color: var(--gray-text);
  opacity: 1;
}

.promo-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.promo-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.promo-link {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--teal);
}

.promo-link:hover { color: var(--red); }

.promo-note {
  text-align: center;
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* Полный каталог */
.catalog-full-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.catalog-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.catalog-group {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 24px 26px;
  border-left: 4px solid var(--teal);
}

.catalog-group-title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.catalog-list {
  list-style: none;
  columns: 1;
}

.catalog-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.catalog-list a {
  color: #3a4a5c;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.catalog-list a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.catalog-cta {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-text);
}

.catalog-cta a { font-weight: 700; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e6ed;
}

.trust-item {
  background: var(--white);
  border: 1px solid #e0e6ed;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

/* Consult banner */
.consult-banner {
  padding: 0 0 72px;
}

.consult-inner {
  background: linear-gradient(115deg, var(--navy) 0%, #2d5a87 100%);
  color: var(--white);
  padding: 40px 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.consult-inner h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.consult-inner p {
  opacity: 0.9;
  font-size: 0.95rem;
  max-width: 480px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p { margin-bottom: 14px; color: #3a4a5c; }

.check-list {
  list-style: none;
  margin-top: 16px;
}

.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 500;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-box {
  background: var(--navy);
  color: var(--white);
  padding: 22px 16px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: 4px;
}

.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--gray-text); }

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.adv-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow);
}

.adv-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  min-width: 48px;
}

.adv-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.05rem; }
.adv-card p { color: var(--gray-text); font-size: 0.9rem; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-channels h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--white);
  transition: transform 0.2s;
}

.channel-btn:hover { transform: translateX(4px); color: var(--white); }

.channel-btn--tg { background: #229ed9; }
.channel-btn--wa { background: #25d366; }
.channel-btn--max { background: var(--max-gradient); }
.channel-btn--tel { background: var(--navy); }

.channel-btn svg { width: 24px; height: 24px; flex-shrink: 0; }

.contact-info { font-size: 0.9rem; color: var(--gray-text); }
.contact-info p { margin-bottom: 8px; }

.contact-form-box {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 14px;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.contact-form textarea { height: 110px; resize: vertical; }

/* ===== Прикрепление файлов ===== */

.file-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 6px;
}

/* Родное поле прячем, но оставляем доступным с клавиатуры */
.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  margin: 0;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px dashed #b9c6d6;
  border-radius: var(--radius);
  background: var(--gray-bg);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  margin: 0;
}

.file-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.file-btn:hover,
.file-field input[type="file"]:focus-visible + .file-btn {
  border-color: var(--teal);
  background: #eaf7f9;
  color: var(--navy);
}

.file-note {
  font-size: 0.76rem;
  color: var(--gray-text);
  line-height: 1.4;
}

.file-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.file-list:empty { display: none; }

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  background: var(--gray-bg);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
}

.file-list .file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 600;
}

.file-list .file-size {
  color: var(--gray-text);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.file-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-text);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.file-remove:hover { background: #f8d7d5; color: var(--red); }

.form-consents { margin: 16px 0; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-text);
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1.45;
}

.consent-label input { margin-top: 3px; flex-shrink: 0; width: auto; margin-bottom: 0; }

.consent-label a { color: var(--navy); text-decoration: underline; }

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status--success { color: #1e7e34; font-weight: 600; }
.form-status--error { color: var(--red); font-weight: 600; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #a8b8cc;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer p, .footer li { font-size: 0.88rem; margin-bottom: 6px; }

.footer a { color: #c5d4e8; text-decoration: none; }
.footer a:hover { color: var(--teal-light); }

.footer-legal { list-style: none; }
.footer-legal li { margin-bottom: 8px; }

.footer-requisites {
  font-size: 0.8rem;
  color: #7a8da6;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.8rem;
  color: #6a7d94;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* FAB */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.fab-btn:hover { transform: scale(1.08); color: var(--white); }

/* В плавающем блоке оставлены три кнопки: телефон, Telegram, MAX */
.fab-btn--tel { background: var(--navy); }
.fab-btn--tg  { background: #229ed9; }
.fab-btn--max { background: var(--max-gradient); }

.fab-btn svg { width: 24px; height: 24px; }

/* Cookie banner */
/* ===== Экран «Спасибо» после отправки заявки ===== */

body.no-scroll { overflow: hidden; }

.thanks-screen {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 42, 69, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.thanks-screen.is-open { opacity: 1; }
.thanks-screen[hidden] { display: none; }

.thanks-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 44px 32px 32px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.thanks-screen.is-open .thanks-card { transform: translateY(0) scale(1); }

.thanks-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--gray-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.thanks-close:hover { background: var(--gray-bg); color: var(--navy); }

.thanks-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}

.thanks-check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.thanks-check path   { stroke-dasharray: 40;  stroke-dashoffset: 40; stroke-width: 4; }

.thanks-screen.is-open .thanks-check circle {
  animation: thanks-draw 0.5s 0.1s ease-out forwards;
}
.thanks-screen.is-open .thanks-check path {
  animation: thanks-draw 0.35s 0.45s ease-out forwards;
}

@keyframes thanks-draw { to { stroke-dashoffset: 0; } }

.thanks-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.thanks-lead {
  color: var(--gray-text);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.thanks-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.thanks-back { min-width: 200px; }

@media (max-width: 480px) {
  .thanks-card { padding: 38px 20px 24px; }
  .thanks-card h2 { font-size: 1.35rem; }
  .thanks-actions .messenger-btn { width: 100%; justify-content: center; }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--navy-dark);
  color: #d0dae8;
  padding: 18px 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-text a { color: var(--teal-light); }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-actions .btn { padding: 10px 20px; font-size: 0.85rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }

  .thanks-screen { transition: none; }
  .thanks-card { transform: none; transition: none; }
  .thanks-check circle,
  .thanks-check path { stroke-dashoffset: 0; animation: none; }
}

/* Подсветка заглушек: index.html?edit=1 */
.placeholder-highlight,
input.placeholder-highlight {
  background: #fff3cd !important;
  outline: 2px dashed #e67e22;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Legal pages */
.legal-page {
  padding: 40px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 { color: var(--navy); margin-bottom: 24px; font-size: 1.8rem; }
.legal-page h2 { color: var(--navy); margin: 28px 0 12px; font-size: 1.2rem; }
.legal-page p, .legal-page li { margin-bottom: 12px; color: #3a4a5c; font-size: 0.95rem; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* Responsive */
@media (max-width: 992px) {
  .catalog-grid,
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-groups { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 768px) {
  .catalog-grid,
  .promo-grid,
  .adv-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .consult-inner { padding: 28px 24px; flex-direction: column; text-align: center; }
  .consult-inner .btn { width: 100%; }

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

  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
  }

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

  .nav-menu a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.08); }

  .nav-wrap { position: relative; }

  .brand-tagline { display: none; }

  .hero { min-height: 480px; }

  .contact-fab { right: 14px; bottom: 80px; }

  .cookie-inner { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Мобильная вёрстка — исправления
   ============================================================ */

/* Контейнер главного экрана был flex-элементом и не сжимался ниже
   ширины содержимого: кнопки уезжали за правый край и обрезались
   (у .hero стоит overflow:hidden). */
.hero-content { width: 100%; min-width: 0; }
.hero-actions,
.hero-messengers { min-width: 0; }
.messenger-btn { max-width: 100%; }

@media (max-width: 600px) {

  /* --- Верхняя полоса и шапка: компактнее и по центру --- */
  .top-bar { font-size: 0.75rem; padding: 6px 0; }
  .top-bar-inner { justify-content: center; text-align: center; gap: 4px 14px; }
  .top-contacts { justify-content: center; gap: 14px; }

  .header { padding: 10px 0; }
  .header-inner { justify-content: center; }
  .brand { gap: 10px; }
  .brand-logo-img { height: 40px; max-width: 52px; }
  .brand-icon-wrap { padding: 3px 6px; border-radius: 10px; }
  .brand-name { font-size: 1.2rem; }

  /* --- Главный экран: текст и кнопки по центру --- */
  .hero { min-height: 0; }
  .hero-content { padding: 40px 0 36px; text-align: center; }

  .hero h1 { font-size: 1.75rem; }
  .hero-lead { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-badge { font-size: 0.75rem; padding: 5px 12px; margin-bottom: 16px; }

  .hero-actions { justify-content: center; gap: 10px; margin-bottom: 20px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 0.88rem; }

  .hero-messengers { justify-content: center; gap: 8px; }
  .hero-messengers span {
    flex: 1 1 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 2px;
  }
  .messenger-btn { padding: 9px 13px; font-size: 0.8rem; gap: 6px; }
  .messenger-btn svg { width: 16px; height: 16px; }

  /* --- Плавающие кнопки: мельче, не наезжают на текст --- */
  .contact-fab { right: 12px; bottom: 86px; gap: 8px; }
  .fab-btn { width: 44px; height: 44px; }
  .fab-btn svg { width: 20px; height: 20px; }
  .fab-btn .max-icon { width: 20px; height: 20px; }
}

/* Страховка от горизонтальной прокрутки на узких экранах */
@media (max-width: 768px) {
  /* clip вместо hidden: hidden создаёт скролл-контейнер и ломает
     прилипающую шапку. Старые браузеры возьмут hidden. */
  html, body { overflow-x: hidden; overflow-x: clip; }
  img, svg { max-width: 100%; }
}

/* ============================================================
   Мобильная шапка — одна планка: логотип + название + меню
   ============================================================ */

/* На десктопе обёртка не создаёт собственный бокс, чтобы sticky-меню
   прилипало к окну, а не к шапке. */
.site-head { display: contents; }

/* Кнопка «три чёрточки» с анимацией в крестик */
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7.75px; }
.nav-toggle-bars span:nth-child(3) { top: 15.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 7.75px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 7.75px;
  transform: rotate(-45deg);
}

/* Контакты в выпадающем меню — только на мобильных */
.nav-menu-contact { display: none; }

@media (max-width: 768px) {

  /* Верхняя полоса скрыта: телефон и почта переехали в меню */
  .top-bar { display: none; }

  /* Единственная планка, прилипает к верху экрана */
  .site-head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 300;
  }

  .header {
    padding: 8px 0;
    border-bottom: 1px solid #e8edf3;
    box-shadow: 0 3px 14px rgba(15, 61, 92, 0.10);
  }

  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .brand { gap: 10px; min-width: 0; }
  .brand-logo-img { height: 40px; max-width: 52px; }
  .brand-icon-wrap { padding: 3px 6px; border-radius: 10px; }
  .brand-name { font-size: 1.3rem; }
  .brand-tagline { display: none; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    color: var(--navy);
    border-radius: 10px;
  }

  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] { background: #eef3f8; }

  /* Меню выпадает панелью прямо под планкой */
  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 299;
  }

  .nav-inner { display: block; padding: 0; max-width: none; }

  .nav-menu {
    position: static;
    display: none;
    flex-direction: column;
    background: var(--navy);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }

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

  .nav-menu a { padding: 15px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-menu li:first-child a { border-top: none; }

  .nav-menu-contact { display: block; }
  .nav-menu-contact a {
    color: var(--teal-light);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-menu-contact:first-of-type a { border-top: 2px solid rgba(255, 255, 255, 0.16); }
}

@media (max-width: 600px) {
  .header-inner { justify-content: space-between; }
  .brand-name { font-size: 1.25rem; }
}
