/* ===== Variables ===== */
:root {
    --bg: #0b0f14;
    --bg-elevated: #121820;
    --bg-card: #161d27;
    --bg-card-hover: #1c2533;
    --text: #e8edf5;
    --text-muted: #8b9bb4;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-2: #22d3ee;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --font: 'Manrope', system-ui, sans-serif;
    --font-display: 'Unbounded', system-ui, sans-serif;
    --header-h: 72px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* ===== Reset & Base ===== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  body.menu-open { overflow: hidden; }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
  }
  button { cursor: pointer; }
  
  .container {
    width: min(1200px, 92%);
    margin-inline: auto;
  }
  
  /* ===== Buttons ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
  }
  .btn--primary {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  }
  .btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
  }
  .btn--outline {
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    background: rgba(255,255,255,0.03);
  }
  .btn--outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-2);
  }
  .btn--sm {
    padding: 10px 18px;
    font-size: 0.875rem;
    border-radius: 10px;
  }
  .btn--full { width: 100%; }
  
  /* ===== Header ===== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
  }
  .header.scrolled {
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
  }
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  .logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 32, 78, 0.28);
  }
  .logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .logo__text {
    display: flex;
    align-items: baseline;
    gap: 0.34em;
    line-height: 1;
    font-size: 1.28rem;
  }
  .logo__first {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .logo__home {
    background: linear-gradient(90deg, #1e4a8a, #f9a01b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .nav__phone { display: none; }
  .nav {
    display: flex;
    gap: 8px;
  }
  .nav__link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
  }
  .nav__link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
  }
  
  .header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: color var(--transition);
  }
  .header__phone:hover { color: var(--accent-2); }
  .header__phone svg { color: var(--accent); }
  
  .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    margin-right: -8px;
  }
  .burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
  }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  /* ===== Hero ===== */
  .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
  }
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg);
    overflow: hidden;
  }
  .hero__bg-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(0.7) contrast(1.05);
  }
  .hero__bg-photo.is-missing { display: none; }
  .hero__bg-glow {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 78% 42%, rgba(59, 130, 246, 0.22), transparent 60%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(34, 211, 238, 0.12), transparent 55%),
      radial-gradient(ellipse 36% 30% at 92% 78%, rgba(99, 102, 241, 0.16), transparent 50%),
      radial-gradient(ellipse 40% 28% at 40% 8%, rgba(34, 211, 238, 0.08), transparent 60%);
    pointer-events: none;
  }
  .hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, black, transparent 78%);
    pointer-events: none;
  }
  .hero__bg-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background:
      linear-gradient(to top, rgba(11, 15, 20, 0.95), transparent 70%),
      linear-gradient(90deg, transparent 10%, rgba(34, 211, 238, 0.08) 50%, transparent 90%);
    pointer-events: none;
  }
  .hero__modules {
    position: absolute;
    right: -2%;
    bottom: 6%;
    width: min(58vw, 680px);
    pointer-events: none;
    z-index: 0;
  }
  .hero__modules-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  }
  .mod--back { animation: modFloat 7s ease-in-out infinite; }
  .mod--mid { animation: modFloat 8.5s ease-in-out infinite 0.4s; }
  .mod--front { animation: modFloat 6.5s ease-in-out infinite 0.8s; }
  .mod__win { animation: winPulse 3.6s ease-in-out infinite; }
  @keyframes modFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  @keyframes winPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
  }
  .hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
  }
  .hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
  }
  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
  }
  .hero__title span {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
  }
  .hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }
  .stat__num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
  }
  
  /* ===== Section common ===== */
  section { padding: 100px 0; }
  .section-header {
    text-align: center;
    margin-bottom: 56px;
  }
  .section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin-inline: auto;
  }
  
  /* ===== Catalog ===== */
  .catalog { background: var(--bg); }
  .catalog__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
  }
  .filter-btn {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    transition: all var(--transition);
  }
  .filter-btn:hover,
  .filter-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  }
  
  .catalog__grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
  }
  .catalog__group.hidden { display: none; }
  .catalog__group-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .catalog__group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }
  .product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  }
  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
  }
  .product-card.hidden { display: none; }
  .product-card__img {
    position: relative;
    height: 220px;
    background: var(--bg);
    background-image: var(--fallback, var(--bg));
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    overflow: hidden;
  }
  .product-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .product-card__photo.is-missing {
    display: none;
  }
  .product-card__img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5)),
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.03) 8px,
        rgba(255,255,255,0.03) 16px
      );
  }
  .product-card__img.has-photo::before {
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45));
  }
  .product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.03em;
    z-index: 1;
  }
  .product-card__img[data-open-gallery] {
    cursor: pointer;
  }
  .product-card__count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
  }
  .product-card__size {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 6px;
  }
  .product-card__body { padding: 24px; }
  .product-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .product-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.55;
  }
  .product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .product-card__features li {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    color: var(--text-muted);
  }
  .product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .product-card__price {
    font-size: 0.9rem;
    color: var(--text-muted);
  }
  .product-card__price strong {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 700;
  }
  
  /* ===== Advantages ===== */
  .advantages {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  }
  .advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .advantage-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
  }
  .advantage-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-4px);
  }
  .advantage-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent-2);
  }
  .advantage-card__icon svg { width: 24px; height: 24px; }
  .advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .advantage-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
  }
  
  /* ===== Gallery ===== */
  .gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
  }
  .gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--fallback, var(--bg-card));
  }
  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .gallery__photo.is-missing { display: none; }
  .gallery__item:hover .gallery__photo { transform: scale(1.06); }
  .gallery__count {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
  }
  .gallery__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
  }
  .gallery__overlay span {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  /* ===== Process ===== */
  .process { background: var(--bg-elevated); }
  .process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }
  .process__steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    z-index: 0;
  }
  .step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 12px;
  }
  .step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 20px;
    box-shadow: 0 0 0 8px var(--bg-elevated);
  }
  .step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
  }
  
  /* ===== Contacts ===== */
  .contacts {
    background:
      radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59, 130, 246, 0.12), transparent),
      var(--bg);
  }
  .contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
  .contacts__info .section-title { text-align: left; }
  .contacts__info .section-tag { text-align: left; }
  .contacts__text {
    color: var(--text-muted);
    margin: 16px 0 20px;
    max-width: 420px;
  }
  .contacts__hours {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .hours-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.15);
    animation: hoursPulse 1.8s ease-in-out infinite;
  }
  @keyframes hoursPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }
    50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.06); }
  }
  .contacts__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
  }
  .contact-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-2px);
  }
  .contact-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-2);
    flex-shrink: 0;
  }
  .contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .contact-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .contact-card__value {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
  }
  .contact-card__meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
  }
  
  .contacts__form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.06);
  }
  .form-group textarea { resize: vertical; min-height: 80px; }
  .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9bb4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
  }
  .form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    opacity: 0.7;
  }
  
  /* ===== Footer ===== */
  .footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    background: var(--bg-elevated);
  }
  .footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
  }
  .footer__brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
  }
  .footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text);
  }
  .footer__col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color var(--transition);
  }
  .footer__col a:hover { color: var(--accent-2); }
  .footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
  }
  .footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
  }
  
  /* ===== Modal ===== */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .modal.open {
    opacity: 1;
    visibility: visible;
  }
  .modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
  }
  .modal__content {
    position: relative;
    width: min(440px, 92%);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal__content--order {
    width: min(460px, 92%);
    padding: 32px 28px 28px;
  }
  .modal.open .modal__content {
    transform: translateY(0) scale(1);
  }
  .modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition);
  }
  .modal__close:hover { color: var(--text); }
  .modal__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 8px;
  }
  .modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .modal__title span { color: var(--accent-2); }
  .modal__lead {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .messengers__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 6px 0 12px;
  }
  .messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .messenger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,0.03);
    text-align: left;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  }
  .messenger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  }
  .messenger__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
  }
  .messenger__icon svg { width: 22px; height: 22px; }
  .messenger__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
  }
  .messenger__logo.is-missing { display: none; }
  .messenger__icon:has(.messenger__logo:not(.is-missing)) {
    background: transparent;
    padding: 0;
  }
  .messenger__icon:has(.messenger__logo:not(.is-missing)) .messenger__fallback {
    display: none;
  }
  .messenger__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .messenger__text strong { font-size: 1rem; }
  .messenger__text small { color: var(--text-muted); font-size: 0.8rem; }
  .messenger--wa .messenger__icon { background: #1fad4d; }
  .messenger--wa:hover { border-color: rgba(31, 173, 77, 0.55); background: rgba(31, 173, 77, 0.1); }
  .messenger--tg .messenger__icon { background: #2AABEE; }
  .messenger--tg:hover { border-color: rgba(42, 171, 238, 0.55); background: rgba(42, 171, 238, 0.1); }
  .messenger--max .messenger__icon { background: linear-gradient(135deg, #6d5efc, #9b5cff); }
  .messenger--max:hover { border-color: rgba(155, 92, 255, 0.55); background: rgba(109, 94, 252, 0.12); }

  /* ===== Lightbox ===== */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
  }
  .lightbox[hidden] { display: none; }
  .lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
  }
  .lightbox__stage {
    position: relative;
    z-index: 1;
    max-width: min(960px, 86vw);
    max-height: 86vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lightbox__img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--bg-card);
  }
  .lightbox__caption {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
  }
  #lightboxCounter {
    color: var(--text-muted);
    font-weight: 500;
  }
  .lightbox__close,
  .lightbox__nav {
    position: relative;
    z-index: 1;
    color: #fff;
    line-height: 1;
    transition: color var(--transition), background var(--transition);
  }
  .lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2rem;
  }
  .lightbox__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 2rem;
    flex-shrink: 0;
  }
  .lightbox__nav:hover,
  .lightbox__close:hover { color: var(--accent-2); }
  .lightbox__nav:disabled {
    opacity: 0.25;
    cursor: default;
  }
  @media (max-width: 700px) {
    .lightbox { flex-direction: column; padding: 56px 12px 20px; }
    .lightbox__nav { width: 42px; height: 42px; }
  }
  
  /* ===== Toast ===== */
  .toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #0f766e;
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  .toast__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-weight: 700;
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 1100px) {
    .nav__link { padding: 8px 10px; font-size: 0.85rem; }
    .header__inner { gap: 16px; }
  }

  @media (max-width: 960px) {
    :root { --header-h: 64px; }
    .header {
      background: rgba(11, 15, 20, 0.78);
      backdrop-filter: blur(16px);
    }
    .nav { display: none; }
    .burger { display: flex; }
    .header__phone { margin-left: auto; }
    .header__phone-text { display: none; }
    .nav.open {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: var(--header-h);
      left: 0;
      right: 0;
      background: rgba(11, 15, 20, 0.98);
      backdrop-filter: blur(16px);
      padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
      gap: 4px;
      border-bottom: 1px solid var(--border);
      max-height: calc(100svh - var(--header-h));
      overflow-y: auto;
    }
    .nav.open .nav__link {
      padding: 14px 16px;
      font-size: 1.05rem;
      min-height: 48px;
      display: flex;
      align-items: center;
    }
    .nav.open .nav__phone {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 10px;
      padding: 14px 16px;
      min-height: 48px;
      border-radius: 12px;
      background: var(--accent-soft);
      color: var(--accent-2);
      font-weight: 700;
    }
    .logo__text { font-size: 1.1rem; }
    .logo__mark { width: 38px; height: 38px; }
    .hero {
      min-height: auto;
      padding: calc(var(--header-h) + 28px) 0 72px;
    }
    .hero__modules {
      opacity: 0.28;
      width: min(48vw, 380px);
      right: -12%;
      bottom: 4%;
    }
    .hero__scroll { display: none; }
    .catalog__filters {
      justify-content: flex-start;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      margin-inline: -4%;
      padding: 0 4% 8px;
    }
    .catalog__filters::-webkit-scrollbar { display: none; }
    .filter-btn {
      flex-shrink: 0;
      min-height: 42px;
    }
    .catalog__group-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .process__steps {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }
    .process__steps::before { display: none; }
    .gallery__grid {
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 180px;
    }
    .gallery__item--large {
      grid-column: span 2;
      grid-row: span 1;
      min-height: 220px;
    }
    .contacts__wrapper {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .footer__inner { grid-template-columns: 1fr; }
    .modal__content,
    .modal__content--order {
      width: min(480px, 94%);
      max-height: calc(100svh - 24px);
      overflow-y: auto;
    }
    .toast {
      width: min(92vw, 420px);
      bottom: max(16px, env(safe-area-inset-bottom));
    }
  }
  
  @media (max-width: 700px) {
    section { padding: 64px 0; }
    .section-header { margin-bottom: 36px; }
    .container { width: min(1200px, 90%); }
    .hero__title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
    .hero__subtitle { font-size: 1rem; margin-bottom: 28px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn {
      width: 100%;
      min-height: 48px;
    }
    .hero__stats { gap: 18px 28px; }
    .stat__num { font-size: 1.45rem; }
    .hero__modules { display: none; }
    .catalog__group-grid { grid-template-columns: 1fr; }
    .catalog__grid { gap: 40px; }
    .product-card__img { height: 200px; }
    .product-card__footer {
      flex-wrap: wrap;
    }
    .product-card__footer .btn {
      min-height: 44px;
    }
    .advantages__grid { grid-template-columns: 1fr; }
    .gallery__grid {
      grid-template-columns: 1fr;
      grid-auto-rows: 220px;
    }
    .gallery__item--large { grid-column: span 1; }
    .process__steps { grid-template-columns: 1fr; }
    .contacts__form { padding: 22px 18px; }
    .contacts__info .section-title { font-size: 1.7rem; }
    .footer__links {
      grid-template-columns: 1fr;
      gap: 28px;
    }
    .messenger { min-height: 64px; }
    input, select, textarea { font-size: 16px; }
    .toast {
      padding: 14px 16px;
      font-size: 0.88rem;
    }
  }

  @media (max-width: 400px) {
    .logo__first { display: none; }
    .product-card__footer { flex-direction: column; align-items: stretch; }
    .product-card__footer .btn { width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mod--back, .mod--mid, .mod--front, .mod__win, .hours-dot { animation: none; }
  }
