/* ТеплоДом — сайт */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0a1a2b;
  --text-muted: #334155;
  --accent: #d94a1a;
  --accent-hover: #c13f16;
  --border: #e9edf2;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.05);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  max-width: 560px;
  margin-bottom: 48px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(217, 74, 26, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(217, 74, 26, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn:active {
  transform: scale(0.98);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo__mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logo__mark svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text);
}

.nav__cta {
  margin-left: 8px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(217, 74, 26, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(10, 26, 43, 0.03) 0%, transparent 60%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--accent);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #f97316);
}

.hero__card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero__card-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero__stat {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}

.hero__float--1 {
  bottom: -20px;
  left: -30px;
}

.hero__float--2 {
  top: 40px;
  right: -20px;
  animation-delay: -3s;
}

.hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 74, 26, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero__float-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.benefit:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(217, 74, 26, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.benefit__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.benefit__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease);
}

.service:hover {
  border-color: var(--accent);
}

.service__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.service__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(217, 74, 26, 0.04) 0%, transparent 70%),
    var(--bg-alt);
}

.calc-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(233, 237, 242, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .calc-glass {
    padding: 36px 36px 40px;
  }
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.project:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project__img {
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.project__tag {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text);
}

.project__body {
  padding: 24px;
}

.project__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.project__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
}

.review__stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.review__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
  top: 11px;
  left: 5px;
}

.faq__icon::after {
  width: 2px;
  height: 14px;
  top: 5px;
  left: 11px;
}

.faq__item.open .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.faq__item.open .faq__a {
  max-height: 320px;
  padding-bottom: 24px;
}

.faq__a p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 74, 26, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 74, 26, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.geo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.geo__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.geo__card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.geo__card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.geo__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo__city {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.geo__city:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217, 74, 26, 0.06);
}

.geo__note {
  margin-top: 28px;
  max-width: 820px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-block {
  max-width: 820px;
}

.seo-block p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.seo-block p:last-child {
  margin-bottom: 0;
}

.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero__grid,
  .contacts__grid,
  .geo__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .geo__grid {
    gap: 20px;
  }

  .hero__visual {
    order: -1;
  }

  .benefits__grid,
  .portfolio__grid,
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .benefits__grid,
  .portfolio__grid,
  .reviews__grid,
  .footer__grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__float {
    display: none;
  }

  .calc-glass {
    padding: 20px 14px 24px;
    border-radius: 20px;
  }
}
