
/* ЧИСТО.ДОМ v1.1 — ПОЛНЫЕ СТИЛИ */

:root {
  --green: #117d69;
  --dark: #17332f;
  --muted: #60736e;
  --background: #f6f9f7;
  --border: #e1eae6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--dark);
  background: white;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, 90%);
  margin: auto;
}

/* ШАПКА */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-inner {
  min-height: 78px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.logo span {
  color: var(--dark);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a:hover {
  color: var(--green);
}

/* ГЛАВНАЯ */

.hero {
  padding: 90px 0;
  background: #f1f8f4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}

h1 {
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 20px 0;
}

h1 span {
  color: var(--green);
}

.hero-description {
  font-size: 19px;
  color: var(--muted);
  max-width: 490px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.btn-outline {
  display: inline-block;
  padding: 15px 23px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--green);
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.btn {
  background: var(--green);
  color: white;
}

.btn:hover {
  background: #08614f;
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: var(--green);
}

.btn-outline:hover {
  background: #e9f5ef;
  transform: translateY(-2px);
}

.small-note,
.hint {
  font-size: 13px;
  color: var(--muted);
}

.small-note {
  margin-top: 22px;
}

/* ФОТО НА ГЛАВНОЙ */

.hero-visual {
  min-height: 450px;
  padding: 35px;
  border-radius: 26px;

  background:
    linear-gradient(
      180deg,
      rgba(9, 49, 39, 0.10) 10%,
      rgba(9, 49, 39, 0.88) 100%
    ),
    url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1200&q=85&fm=jpg")
    center / cover no-repeat,
    #5cae92;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: white;

  box-shadow: 0 18px 45px rgba(0, 50, 35, 0.12);
}

.visual-symbol {
  align-self: flex-end;
  font-size: 110px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.visual-content {
  color: white;
}

.visual-content > span {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}

.visual-content h2 {
  font-size: 36px;
  line-height: 1.2;
}

.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-tags span {
  background: rgba(255, 255, 255, 0.90);
  color: #104d3d;
  border-radius: 40px;
  padding: 7px 17px;
  font-size: 13px;
  font-weight: 700;
}

/* ОБЩИЕ СЕКЦИИ */

.section {
  padding: 90px 0;
  scroll-margin-top: 90px;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2,
.request-layout h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0;
  line-height: 1.2;
}

.section-heading p,
.request-layout p {
  color: var(--muted);
}

/* УСЛУГИ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;

  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 50, 35, 0.08);
}

.card.featured {
  border: 2px solid var(--green);
  box-shadow: 0 12px 30px rgba(17, 125, 105, 0.08);
}

.popular {
  position: absolute;
  top: -15px;
  right: 16px;
  background: var(--green);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.card-icon,
.step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #e7f4ee;
  color: var(--green);
  border-radius: 14px;
  font-size: 30px;
}

.card h3 {
  font-size: 23px;
  margin-bottom: 4px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  flex: 1;
}

.card li {
  margin: 8px 0;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card-bottom strong {
  color: var(--green);
  font-size: 21px;
}

.card-bottom a {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

/* КАК МЫ РАБОТАЕМ */

.process-section {
  background: #f3f8f5;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--border);

  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 50, 35, 0.08);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #c9dfd6;
  font-size: 35px;
  font-weight: 800;
}

.process-card h3 {
  margin: 25px 0 10px;
  font-size: 19px;
}

.process-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

/* КАЛЬКУЛЯТОР */

.calculator-section {
  background: var(--background);
}

.calculator {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  max-width: 950px;
  margin: auto;
}

.calculator-fields,
.price-panel,
.request-form {
  padding: 35px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
}

.calculator-fields > label:not(.check),
.request-form > label {
  display: block;
  font-weight: 700;
  margin-bottom: 9px;
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #ccd9d3;
  background: white;
  margin-bottom: 20px;
  color: var(--dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #73b7a2;
  outline-offset: 2px;
}

.calculator-fields h3 {
  margin-top: 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  cursor: pointer;
}

.check input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}

.price-panel {
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-panel > span {
  color: #a7c9bb;
}

.price {
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  margin: 15px 0;
  line-height: 1.2;
}

.price-panel p {
  color: #c6d8d1;
}

.price-warning {
  font-size: 13px;
}

.price-panel .btn {
  margin-top: 15px;
  background: white;
  color: var(--green);
}

/* FAQ */

.faq-section {
  background: #f8fbf9;
}

.faq-container {
  max-width: 850px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 24px;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 23px 34px 23px 0;
  font-size: 17px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 27px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--muted);
  margin: 0;
  padding: 0 0 24px;
}

/* ЗАЯВКА */

.request-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 80px;
}

.request-form .btn {
  width: 100%;
}

#requestResult {
  margin-top: 25px;
}

#requestResult label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

#resultText {
  min-height: 190px;
}

#copyStatus {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}

/* ПОДВАЛ */

footer {
  background: #102c25;
  color: white;
  padding: 30px 0;
}

footer p {
  color: #aac3b8;
  font-size: 13px;
}

/* ДОСТУПНОСТЬ */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #73b7a2;
  outline-offset: 4px;
}

/* ПЛАНШЕТЫ */

@media (max-width: 1020px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    gap: 12px;
  }
}

@media (max-width: 850px) {
  .hero-grid,
  .calculator,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 55px 0;
  }

  .hero-visual {
    min-height: 350px;
  }

  .request-layout {
    gap: 25px;
  }

  .header-inner {
    flex-direction: column;
    padding: 15px 0;
  }
}

/* ТЕЛЕФОНЫ */

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    padding: 25px;
  }

  .faq-item {
    padding: 0 18px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 350px;
    padding: 24px;
  }

  .visual-content h2 {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
    scroll-margin-top: 150px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  .calculator-fields,
  .price-panel,
  .request-form,
  .card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
  }
}

/* БЕЗ АНИМАЦИЙ ПРИ СООТВЕТСТВУЮЩЕЙ НАСТРОЙКЕ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn-outline,
  .card,
  .process-card {
    transition: none;
  }
}
