:root {
  --page: #f4f8fc;
  --surface: #ffffff;
  --text: #132033;
  --muted: #66758a;
  --blue: #188ed8;
  --blue-dark: #0877bd;
  --navy: #334664;
  --orange: #f28b3c;
  --orange-soft: #fff0e4;
  --line: #dfe8f1;
  --shadow: 0 24px 70px rgba(31, 62, 94, 0.13);
}

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

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 28%, rgba(121, 192, 235, 0.14), transparent 27rem),
    linear-gradient(180deg, #f8fbfe 0%, var(--page) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--text);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  height: 76px;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  color: var(--blue-dark);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  box-shadow: 0 7px 16px rgba(24, 142, 216, 0.22);
}

.brand-mark span {
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: #fff;
}

.brand-mark span:nth-child(1) { height: 55%; opacity: 0.78; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 76%; opacity: 0.9; }

.service-label {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  display: flex;
  min-height: calc(100svh - 76px);
  align-items: center;
  padding: 34px 0 58px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  gap: clamp(38px, 6vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  animation: fade-up 650ms cubic-bezier(.2,.75,.25,1) both;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--orange-soft);
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 span {
  color: var(--blue-dark);
}

.hero-description {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.benefits {
  display: flex;
  margin: 25px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 11px 22px;
  list-style: none;
}

.benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3e5068;
  font-size: 14px;
  font-weight: 650;
}

.benefits li span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #e4f3fc;
  font-size: 12px;
}

.cta-block {
  margin-top: 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
}

.cta {
  display: inline-flex;
  min-height: 56px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #fff;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(36, 77, 112, 0.17);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.cta-telegram {
  background: linear-gradient(135deg, #22a8e8, #168bd0);
}

.cta-max {
  background: linear-gradient(135deg, #49617f, #2f415d);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(36, 77, 112, 0.22);
  filter: saturate(1.08);
}

.cta:active {
  transform: translateY(1px) scale(0.985);
}

.cta:focus-visible {
  outline: 3px solid rgba(24, 142, 216, 0.32);
  outline-offset: 4px;
}

.messenger-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.telegram-icon {
  padding: 0 2px 2px 0;
  font-size: 17px;
  transform: rotate(-24deg);
}

.cta-arrow {
  margin-left: 1px;
  opacity: 0.72;
  font-size: 15px;
}

.cta-hint {
  margin: 12px 0 0;
  color: #8290a2;
  font-size: 12px;
  text-align: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 560px;
  animation: fade-in 800ms 120ms ease-out both;
}

.visual-glow {
  position: absolute;
  inset: 8% 0 5% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 190, 237, 0.24), rgba(226, 241, 250, 0.24) 48%, transparent 70%);
  filter: blur(2px);
}

.receipt,
.phone {
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.receipt {
  z-index: 2;
  top: 36px;
  left: 0;
  width: 66%;
  min-width: 320px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(224, 233, 242, 0.9);
  border-radius: 24px;
  transform: rotate(-4deg);
}

.receipt::before {
  position: absolute;
  top: 0;
  right: 26px;
  width: 48px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: var(--orange);
  content: "";
}

.receipt-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.receipt-top > div {
  display: grid;
  gap: 6px;
}

.receipt-label,
.total-label,
.compare {
  color: #8190a2;
  font-size: 11px;
}

.receipt-top strong {
  font-size: 16px;
}

.receipt-status {
  padding: 6px 9px;
  border-radius: 8px;
  color: #d3661b;
  background: var(--orange-soft);
  font-size: 10px;
  font-weight: 750;
}

.receipt-rule {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.service-row {
  display: grid;
  margin: 13px 0;
  align-items: center;
  grid-template-columns: 27px 1fr auto;
  gap: 9px;
  color: #5b6a7d;
  font-size: 12px;
}

.service-row strong {
  color: #31425a;
  font-size: 12px;
}

.utility-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
}

.water-icon {
  position: relative;
  background: #e3f4fd;
}

.water-icon::after {
  width: 8px;
  height: 11px;
  border-radius: 7px 7px 8px 8px;
  background: #239fdc;
  content: "";
  transform: rotate(45deg);
}

.heat-icon {
  position: relative;
  background: #ffede1;
}

.heat-icon::before,
.heat-icon::after {
  position: absolute;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--orange);
  content: "";
  transform: skewX(-18deg);
}

.heat-icon::before { left: 9px; }
.heat-icon::after { right: 9px; }

.power-icon {
  color: #d49b18;
  background: #fff6d9;
  font-size: 18px;
  font-weight: 800;
}

.total-label {
  display: block;
  margin-bottom: 4px;
}

.total-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.total-row > strong {
  font-size: 31px;
  letter-spacing: -0.04em;
}

.growth {
  display: inline-flex;
  padding: 6px 8px;
  align-items: center;
  gap: 3px;
  border-radius: 9px;
  color: #d8661d;
  background: var(--orange-soft);
  font-size: 11px;
  font-weight: 800;
}

.growth span { font-size: 15px; }
.compare { display: block; margin-top: 5px; }

.phone {
  z-index: 3;
  right: 0;
  bottom: 10px;
  width: 47%;
  min-width: 238px;
  padding: 8px;
  border: 3px solid #2a3b54;
  border-radius: 34px;
  background: #263750;
  transform: rotate(4deg);
}

.phone-screen {
  min-height: 390px;
  overflow: hidden;
  border-radius: 25px;
  background: linear-gradient(180deg, #f4f8fc, #eef4f8);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  width: 58px;
  height: 14px;
  border-radius: 10px;
  background: #263750;
  transform: translateX(-50%);
}

.chat-head {
  display: flex;
  padding: 34px 14px 13px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e1e8ef;
  background: rgba(255, 255, 255, 0.9);
}

.chat-head > span:last-child {
  display: grid;
  gap: 2px;
}

.chat-head strong { font-size: 11px; }
.chat-head small { color: #4c9a68; font-size: 8px; }

.bot-avatar {
  display: flex;
  width: 31px;
  height: 31px;
  padding: 7px;
  align-items: end;
  gap: 2px;
  border-radius: 10px;
  background: var(--blue);
}

.bot-avatar i {
  width: 4px;
  border-radius: 2px;
  background: #fff;
}

.bot-avatar i:nth-child(1) { height: 8px; }
.bot-avatar i:nth-child(2) { height: 14px; }
.bot-avatar i:nth-child(3) { height: 11px; }

.message {
  width: fit-content;
  max-width: 82%;
  margin: 14px 11px 0;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 9px;
  line-height: 1.45;
}

.bot-message {
  color: #46576d;
  background: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 5px 14px rgba(52, 73, 97, 0.07);
}

.user-message {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
  border-bottom-right-radius: 4px;
}

.short-message { margin-top: 9px; }

.chat-action {
  margin: 25px 11px 12px;
  padding: 11px 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  font-weight: 720;
  text-align: center;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  padding: 8px 12px 8px 8px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(225, 234, 243, 0.9);
  border-radius: 13px;
  color: #526278;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 11px 25px rgba(39, 67, 94, 0.13);
  font-size: 10px;
  font-weight: 700;
}

.floating-water { top: 47%; left: -3%; transform: rotate(-5deg); }
.floating-power { right: 1%; bottom: 6%; transform: rotate(3deg); }

.noscript-message {
  position: fixed;
  z-index: 99;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #713d18;
  background: #fff0e4;
  font-size: 13px;
  text-align: center;
}

.metrika-noscript {
  position: absolute;
  left: -9999px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
    gap: 28px;
  }

  h1 { font-size: clamp(44px, 5.4vw, 56px); }
  .hero-visual { min-height: 505px; }
  .receipt { min-width: 285px; padding: 22px; }
  .phone { min-width: 210px; }
  .phone-screen { min-height: 350px; }
  .cta { padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 820px) {
  .site-header { height: 68px; }
  .service-label { display: none; }

  .hero {
    min-height: auto;
    padding: 28px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy { max-width: 680px; }
  .hero-description { max-width: 620px; }
  .hero-visual { width: min(100%, 580px); min-height: 530px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1200px); }
  .hero { padding-top: 18px; }
  .eyebrow { margin-bottom: 14px; font-size: 11px; }

  h1 {
    font-size: clamp(36px, 10.2vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.052em;
  }

  .hero-description {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .benefits { margin-top: 19px; gap: 8px 15px; }
  .benefits li { font-size: 12px; }
  .benefits li span { width: 18px; height: 18px; }
  .cta-block { margin-top: 24px; }
  .cta-row { flex-direction: column; gap: 10px; }
  .cta { width: 100%; min-height: 54px; }
  .cta-arrow { margin-left: auto; }
  .cta-hint { margin-top: 10px; }

  .hero-visual {
    min-height: 440px;
    margin-top: 4px;
  }

  .receipt {
    top: 14px;
    left: -5px;
    width: 69%;
    min-width: 245px;
    padding: 18px;
    border-radius: 20px;
  }

  .receipt-top strong { font-size: 13px; }
  .receipt-rule { margin: 13px 0; }
  .service-row { margin: 10px 0; font-size: 10px; }
  .service-row strong { font-size: 10px; }
  .utility-icon { width: 22px; height: 22px; border-radius: 7px; }
  .total-row > strong { font-size: 25px; }
  .phone { right: -6px; bottom: 2px; width: 47%; min-width: 178px; border-radius: 28px; }
  .phone-screen { min-height: 300px; border-radius: 20px; }
  .chat-head { padding: 30px 10px 10px; }
  .chat-head strong { font-size: 9px; }
  .message { margin-top: 10px; padding: 8px; font-size: 8px; }
  .chat-action { margin-top: 17px; font-size: 8px; }
  .floating-water { top: 45%; left: -1%; }
  .floating-power { right: -1%; bottom: 3%; }
}

@media (max-width: 370px) {
  .container { width: min(100% - 24px, 1200px); }
  h1 { font-size: 35px; }
  .benefits { gap: 7px 10px; }
  .hero-visual { transform: scale(0.94); transform-origin: top center; margin-bottom: -25px; }
}

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