/* DrainTech — Emergency Tech Service 2026 */

:root {
  --bg: #0f1115;
  --bg-2: #171b22;
  --bg-glass: rgba(23, 27, 34, 0.65);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.45);
  --accent: #00d26a;
  --accent-dim: rgba(0, 210, 106, 0.15);
  --accent-glow: rgba(0, 210, 106, 0.45);
  --danger: #ff4444;
  --border: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --blur: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 8px 16px; background: var(--accent); color: var(--bg);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Glass */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.logo__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.logo__accent { color: var(--accent); }
.nav__list { display: flex; gap: 24px; }
.nav__link {
  font-size: 0.88rem; color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}
.nav__link:hover { color: var(--accent); }
.header__phones {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.header__cta {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--accent);
  white-space: nowrap;
}
.header__cta--secondary { font-size: 0.85rem; opacity: 0.92; }
.header__cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse-dot 1.5s ease infinite;
}
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }
.burger--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Breadcrumbs */
.breadcrumbs { padding-top: calc(var(--header-h) + 16px); padding-bottom: 0; }
.breadcrumbs__list { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-3); }
.breadcrumbs__list li + li::before { content: '/'; margin-right: 8px; opacity: 0.4; }

/* 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;
  border: none; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--telegram { background: #229ED9; color: #fff; box-shadow: 0 4px 20px rgba(34, 158, 217, 0.35); }
.btn--telegram:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34, 158, 217, 0.45); }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
  padding-bottom: 60px;
}
.hero__pipeline {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.pipeline-svg {
  width: 100%; height: 100%;
  opacity: 0.7;
  transition: transform 0.1s linear;
}
.pipe { stroke-linecap: round; }
.pulse { opacity: 0; }
.pulse--active { opacity: 1; }

.pulse--1 { offset-path: path('M0,300 L1200,300'); animation: pulseMove 3s linear infinite; }
.pulse--2 { offset-path: path('M300,300 L300,150'); animation: pulseMove 4s linear infinite 0.5s; }
.pulse--3 { offset-path: path('M900,300 L900,180'); animation: pulseMove 3.5s linear infinite 1s; }

@keyframes pulseMove {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.clog { opacity: 0; transform-origin: 600px 300px; }
.clog--visible { animation: clogAppear 0.6s ease forwards; }
.clog--clearing { animation: clogClear 1s ease forwards; }
.clog__ring { animation: clogRing 1.5s ease infinite; }

@keyframes clogAppear {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes clogClear {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}
@keyframes clogRing {
  0%, 100% { r: 20; opacity: 0.5; }
  50% { r: 28; opacity: 0.2; }
}

.clear-indicator { opacity: 0; }
.clear-indicator--visible { animation: clearShow 0.8s ease forwards; }
@keyframes clearShow {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.scan-line { animation: scanMove 4s linear infinite; }
@keyframes scanMove {
  0% { transform: translateY(100px); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(500px); opacity: 0; }
}

.hero__diag-panel {
  position: absolute; top: calc(var(--header-h) + 24px); right: 24px;
  padding: 20px 24px; min-width: 240px; z-index: 2;
}
.diag-panel__row {
  display: flex; justify-content: space-between; gap: 16px;
  margin-bottom: 12px; font-size: 0.82rem;
}
.diag-panel__label { color: var(--text-3); }
.diag-panel__value { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.diag-panel__value--warn { color: var(--danger); }
.diag-panel__value--ok { color: var(--accent); }
.diag-panel__bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.diag-panel__progress {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 2px; transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 210, 106, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15,17,21,0.4) 0%, rgba(15,17,21,0.85) 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; max-width: 720px; padding-top: 20px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--bg-glass);
  font-size: 0.78rem; color: var(--text-2); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s ease 3s forwards;
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease infinite; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s ease 3.2s forwards;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-2);
  margin-bottom: 32px; line-height: 1.7;
  opacity: 0; animation: fadeUp 0.7s ease 3.4s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s ease 3.6s forwards;
}
.hero__benefits {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  opacity: 0; animation: fadeUp 0.7s ease 3.8s forwards;
}
.hero__benefits li {
  font-size: 0.88rem; color: var(--text-2); padding-left: 18px; position: relative;
}
.hero__benefits li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

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

/* Sections */
.section { padding: 96px 0; }
.section:nth-child(even) { background: var(--bg-2); }
.section__header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block; font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.section__desc { color: var(--text-2); font-size: 1.02rem; }

/* Calculator */
.calculator__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calculator__form, .calculator__result { padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label, .form-label {
  display: block; font-size: 0.82rem; color: var(--text-2); margin-bottom: 8px; font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(15, 17, 21, 0.6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group input.error { border-color: var(--danger); }
.form-error { display: block; font-size: 0.78rem; color: var(--danger); margin-top: 4px; min-height: 1.1em; }
.toggle-group { display: flex; gap: 20px; }
.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.92rem; }
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.calc-result__header { text-align: center; margin-bottom: 12px; }
.calc-result__label { display: block; font-size: 0.88rem; color: var(--text-2); margin-bottom: 8px; }
.calc-result__price { font-size: 2.4rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.calc-result__note { text-align: center; font-size: 0.82rem; color: var(--text-3); margin-bottom: 24px; }
.lead-form__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-card { padding: 28px; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 106, 0.2);
  box-shadow: 0 12px 40px rgba(0, 210, 106, 0.08);
}
.service-card__icon {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  opacity: 0.6; margin-bottom: 14px; letter-spacing: 0.1em;
}
.service-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-card__text { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; }

/* Areas */
.areas__grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-chip {
  padding: 12px 22px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--bg-glass);
  font-size: 0.9rem; color: var(--text-2);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.area-chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.why-card { padding: 28px; transition: transform var(--transition); }
.why-card:hover { transform: translateY(-3px); }
.why-card--accent { border-color: rgba(0, 210, 106, 0.25); background: rgba(0, 210, 106, 0.05); }
.why-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.why-card__text { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; }

/* Steps */
.steps__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px;
}
.step-item { padding: 24px 18px; text-align: center; }
.step-item__num {
  display: block; font-size: 1.8rem; font-weight: 700;
  color: var(--accent); opacity: 0.35; margin-bottom: 10px;
}
.step-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.step-item p { font-size: 0.82rem; color: var(--text-2); line-height: 1.45; }

/* Reviews */
.reviews__slider { overflow: hidden; }
.reviews__track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.review-card {
  flex: 0 0 100%; max-width: 100%; margin: 0; padding: 40px 32px; text-align: center;
}
.review-card__stars { color: var(--accent); letter-spacing: 4px; margin-bottom: 18px; }
.review-card p { font-size: 1.05rem; color: var(--text-2); font-style: italic; line-height: 1.7; margin-bottom: 20px; max-width: 680px; margin-left: auto; margin-right: auto; }
.review-card cite { font-style: normal; font-weight: 600; display: block; margin-bottom: 4px; }
.review-card span { font-size: 0.82rem; color: var(--text-3); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.reviews__btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-glass); color: var(--text); cursor: pointer; transition: border-color 0.3s;
}
.reviews__btn:hover { border-color: var(--accent); }
.reviews__dots { display: flex; gap: 6px; }
.reviews__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  border: none; cursor: pointer; padding: 0; transition: background 0.3s, transform 0.3s;
}
.reviews__dot--active { background: var(--accent); transform: scale(1.25); }

/* FAQ */
.faq__list { max-width: 780px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  padding: 18px 0; font-weight: 600; font-size: 1rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { padding: 0 0 18px; color: var(--text-2); line-height: 1.65; font-size: 0.92rem; }

/* Contacts */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contacts__info { display: flex; flex-direction: column; gap: 12px; }
.contact-block { padding: 20px 24px; }
.contact-block__label { display: block; font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-block__value { display: block; font-size: 1.05rem; font-weight: 500; transition: color 0.3s; }
.contact-block__value + .contact-block__value { margin-top: 6px; }
a.contact-block__value:hover { color: var(--accent); }
.contacts__form { padding: 32px; }
.contacts__map { grid-column: 1 / -1; height: 320px; overflow: hidden; padding: 0; }
.contacts__map iframe { display: block; border-radius: var(--radius); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand p { font-size: 0.82rem; color: var(--text-3); margin-top: 6px; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { font-size: 0.88rem; color: var(--text-2); transition: color 0.3s; }
.footer__nav a:hover { color: var(--accent); }
.footer__legal {
  width: 100%; text-align: center; font-size: 0.78rem; color: var(--text-3); line-height: 1.6;
}
.footer__legal p + p { margin-top: 2px; }
.footer__copy { width: 100%; text-align: center; font-size: 0.78rem; color: var(--text-3); margin-top: 12px; }

/* Modal */
.modal { border: none; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }
.modal__content { position: relative; padding: 32px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  font-size: 1.5rem; color: var(--text-3); cursor: pointer;
}
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal__desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 22px; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-2); border: 1px solid var(--accent);
  color: var(--text); padding: 14px 28px; border-radius: 50px;
  font-weight: 500; z-index: 10000; box-shadow: 0 8px 32px var(--accent-dim);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.toast--visible { transform: translateX(-50%) translateY(0); }
.toast--error { border-color: var(--danger); }

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

/* Responsive */
@media (max-width: 1024px) {
  .calculator__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .hero__diag-panel { right: 16px; top: calc(var(--header-h) + 12px); min-width: 200px; padding: 14px 18px; }
}

@media (max-width: 768px) {
  :root { --header-h: 118px; }

  .header {
    height: auto;
    padding: 10px 0 12px;
  }
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    row-gap: 10px;
  }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(15, 17, 21, 0.97); backdrop-filter: blur(20px);
    padding: 20px; transform: translateY(-120%); opacity: 0;
    transition: transform 0.4s, opacity 0.4s; border-bottom: 1px solid var(--border);
  }
  .nav--open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; gap: 14px; }
  .burger { display: flex; margin-left: auto; }
  .header__phones {
    display: flex;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .header__cta {
    justify-content: center;
    font-size: 0.88rem;
    white-space: normal;
    text-align: center;
  }
  .header__cta--secondary { font-size: 0.88rem; opacity: 1; }
  .hero__diag-panel { display: none; }
  .section { padding: 64px 0; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  :root { --header-h: 132px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .steps__list { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
