/* ============ БАЗА И ПЕРЕМЕННЫЕ ============ */
:root {
  --bg-dark: #1E1E1E;
  --bg-dark-2: #262626;
  --bg-light: #F5F3F0;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #F7F5F2;
  --text-muted: #6E6A65;
  --accent: #1f7a55;
  --accent-hover: #26855e;
  --accent-bright: #4ee090;
  --accent-deep: #3c7b8b;
  --border: #E5E0DA;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .18);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-sub { margin-top: 10px; font-size: 17px; color: var(--text-muted); }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 122, 85, .35); }

.btn:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.btn-primary:disabled:hover { background: var(--accent); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 30, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
  color: #fff;
}
.logo-mark { color: var(--accent-bright); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
}
.nav.open { display: block; }

.nav-list { display: flex; flex-direction: column; padding: 6px 20px 18px; }
.nav-list a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 10px 18px; font-size: 14px; }

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  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 {
  background: linear-gradient(160deg, var(--bg-dark) 0%, #141414 100%);
  color: var(--text-light);
  padding: 64px 0;
  
  overflow: hidden;
}


.hero-grid { display: grid; gap: 40px; align-items: start; }

.hero-badge {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(78, 224, 144, 0.4);
  border-radius: 999px;
  background: rgba(51, 184, 133, 0.14);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
}

.hero h1 { font-size: 34px; font-weight: 800; margin: 18px 0 16px; }
.hero h1 span { color: var(--accent-bright); }

.hero-subtitle { font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hero-trust li { position: relative; padding-left: 18px; }
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.hero-media {
  position: relative;
  align-items: center;
  width: 100%;
  aspect-ratio: 1410 / 1200;
  
}

.hero-media__item {
  position: absolute;
  height: auto;
}

.hero-content{

 padding-top: 10%;
  
  
}

.hero-media.is-pending .hero-media__item { opacity: 0; }
.hero-media.is-visible .hero-media__item {
  animation: hero-assemble 2.9s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-media__item--first {
  width: 90%;
  left: 0%;
  top: 0%;
  --hero-x: 0;
  --hero-y: -175px;
}

.hero-media__item--second {
  width:70%;
  left: 25%;
  top: 49%;
  --hero-x: 175px;
  --hero-y: 0;
  animation-delay: 0.36s;
}

.hero-media__item--third {
  width: 70%;
  left: 0.5%;
  top: 74%;
  --hero-x: 0;
  --hero-y: 105px;
  animation-delay: 0.86s;
}

@keyframes hero-assemble {
  from { opacity: 0; transform: translate(var(--hero-x), var(--hero-y)); }
  to { opacity: 1; transform: translate(0, 0); }
}

/* ============ УСЛУГИ ============ */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-media img { width: 100%; height: 220px; object-fit: cover; }

.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card-body h3 { font-size: 20px; }
.card-body p { font-size: 15px; color: var(--text-muted); flex: 1; }

.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--accent-deep); }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent); }
.card-link:hover { color: var(--accent-hover); }

/* ============ ПОРТФОЛИО ============ */
.portfolio { background: var(--bg-dark); color: var(--text-light); }
.portfolio .section-sub { color: rgba(255, 255, 255, .65); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.filter-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: var(--text-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark-2);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0));
  color: #fff;
}

.portfolio-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.portfolio-item h3 { font-size: 18px; font-weight: 700; }
.portfolio-item.is-hidden { display: none; }

/* ============ ЭТАПЫ ============ */
.steps { background: var(--bg-light); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-muted); }

/* ============ КАЛЬКУЛЯТОР ============ */
.calculator { background: var(--bg-dark); color: var(--text-light); }
.calculator .section-sub { color: rgba(255, 255, 255, .65); }

.calc-form {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.calc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.calc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }

.calc-result {
  min-height: 28px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent-bright);
}
.calc-result.error { color: #ff8a8a; font-size: 15px; }

.calc-breakdown {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(78, 224, 144, .06);
  border: 1px solid rgba(78, 224, 144, .28);
  border-radius: var(--radius-sm);
  animation: calc-breakdown-in .25s ease both;
}
.calc-breakdown[hidden] { display: none; }
.calc-breakdown h3 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 16px;
  color: #fff;
}
.calc-breakdown dl { display: grid; gap: 8px; margin: 0; }
.calc-breakdown dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}
.calc-breakdown dt,
.calc-breakdown dd { margin: 0; }
.calc-breakdown dd { color: rgba(255, 255, 255, .95); text-align: right; }
.calc-breakdown-total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-head);
  font-size: 17px !important;
  font-weight: 700;
}
.calc-breakdown-total dd { color: var(--accent-bright); }
@keyframes calc-breakdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-note { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ============ ПОЛЯ ФОРМ ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}
.field input::placeholder,
.field textarea::placeholder { color: #9B9690; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 122, 85, .18);
}
.field select option { color: var(--text-dark); background: #fff; }
.field-hint {
  font-size: 13px;
  line-height: 1.4;
  color: #6F6A64;
}

input[type="file"] { cursor: pointer; padding: 10px; }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--accent-hover); }

/* тёмная версия полей в калькуляторе */
.calc-form .field label { color: rgba(255, 255, 255, .85); }
.calc-form .field input,
.calc-form .field select {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
}
.calc-form .field input::placeholder { color: rgba(255, 255, 255, .4); }
.calc-form .field select option { color: var(--text-dark); background: #fff; }
.calc-form .field input:focus,
.calc-form .field select:focus {
  background-color: rgba(255, 255, 255, .09);
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(78, 224, 144, .25);
}

/* Кастомная стрелка: отступ от правого края и место под текст */
.calc-form .field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23cfded7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* ============ КАСТОМНЫЙ ВЫПАДАЮЩИЙ СПИСОК ============ */
.custom-select { position: relative; width: 100%; }

.calc-form .select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 45px;
  padding: 12px 42px 12px 14px;
  background-color: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23cfded7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  -webkit-appearance: none;
  appearance: none;
}
.calc-form .select-trigger:hover { border-color: rgba(255, 255, 255, .28); }
.calc-form .select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(78, 224, 144, .25);
}
.calc-form .select-trigger[aria-expanded="true"] {
  background-color: rgba(255, 255, 255, .09);
  border-color: var(--accent-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5 6 1.5l5 5' fill='none' stroke='%234ee090' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.calc-form .select-trigger[aria-invalid="true"] { border-color: #ff8a8a; }
.calc-form .select-trigger[aria-invalid="true"]:focus-visible {
  border-color: #ff8a8a;
  box-shadow: 0 0 0 3px rgba(255, 138, 138, .22);
}

.select-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-value.is-placeholder { color: rgba(255, 255, 255, .62); }

.select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.select-menu[hidden] { display: none; }
.custom-select.drop-up .select-menu { top: auto; bottom: calc(100% + 8px); }

.select-option {
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  cursor: pointer;
}
.select-option:hover,
.select-option:focus {
  background: rgba(78, 224, 144, .12);
  color: #fff;
  outline: none;
}
.select-option[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}
.select-menu::-webkit-scrollbar { width: 8px; }
.select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 4px;
}

/* ============ СВОИ СТРЕЛКИ У NUMBER-ПОЛЕЙ ============ */
.calc-form .number-input { position: relative; }
.calc-form .number-input input { padding-right: 48px; }
.calc-form .field input[aria-invalid="true"] { border-color: #ff8a8a; }
.calc-form .field input[aria-invalid="true"]:focus {
  border-color: #ff8a8a;
  box-shadow: 0 0 0 3px rgba(255, 138, 138, .22);
}

.calc-form .number-input input::-webkit-outer-spin-button,
.calc-form .number-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-form .number-input input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-form .number-buttons {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.calc-form .number-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}
.calc-form .number-btn:hover {
  color: var(--accent-bright);
  background: rgba(255, 255, 255, .08);
}
.calc-form .number-btn:active { background: rgba(78, 224, 144, .18); }
.calc-form .number-btn svg { width: 8px; height: 5px; display: block; }
.calc-form .number-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ ОТЗЫВЫ ============ */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.review {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.review-stars { color: rgb(255, 255, 7); letter-spacing: 3px; margin-bottom: 12px;  -webkit-text-stroke: 0.5px #f0ec00;}
.review-text { font-size: 15px; margin-bottom: 18px; }

.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.review-author strong { display: block; font-size: 15px; }
.review-author span { font-size: 13px; color: var(--text-muted); }

/* ============ ФОРМА ЗАЯВКИ ============ */
.order { background: var(--bg-light); }
.order-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }

.order-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.order-info p { color: var(--text-muted); margin-bottom: 20px; }

.order-benefits { display: grid; gap: 12px; }
.order-benefits li { position: relative; padding-left: 28px; font-weight: 500; }
.order-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 122, 85, .14);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }

.order-submit { margin-top: 22px; width: 100%; }

.form-message { min-height: 22px; margin-top: 14px; font-weight: 600; font-size: 15px; }
.form-message.success { color: #2e7d32; }
.form-message.error { color: #c62828; }

/* ============ КОНТАКТЫ ============ */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

.contacts-list { display: grid; gap: 22px; align-content: start; }
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-value { font-weight: 600; font-size: 17px; }
.contact-value a:hover { color: var(--accent-deep); }

.contacts-map img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============ FOOTER ============ */
.footer { background: #141414; color: rgba(255, 255, 255, .75); padding-top: 48px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer .footer-inner { padding-bottom: 20px; }
.footer-logo { font-size: 22px; }
.footer-col p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a:hover { color: var(--accent-bright); }
.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 14px;
  padding-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

/* ============ ПЛАВАЮЩИЕ КНОПКИ ============ */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.fab-btn svg { width: 28px; height: 28px; fill: currentColor; }
.fab-wa { background: #25D366; }
.fab-tg { background: #229ED9; }
.fab-btn:hover { transform: translateY(-3px) scale(1.05); }

.fab-top {
  padding: 0;
  background: #1d1d1d;
  border: 1px solid #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.92);
  pointer-events: none;
}
.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.fab-top.is-visible:hover,
.fab-top.is-visible:focus-visible {
  background: #2b2b2b;
  transform: translateY(-3px) scale(1.05);
}
.fab-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section-head h2 { font-size: 36px; }
  .container { padding: 0 32px; }

  .hero { padding: 88px 0; }
  .hero h1 { font-size: 44px; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Навигация в строку включаем только там, где она помещается без переполнения */
@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
    margin-left: auto;
  }
  .header-actions { margin-left: 0; }
  .nav-list { flex-direction: row; gap: 24px; padding: 0; }
  .nav-list a { padding: 8px 0; border: 0; font-size: 15px; transition: color var(--transition); }
  .nav-list a:hover { color: var(--accent-bright); }
  .header-cta { padding: 12px 22px; font-size: 15px; }
}

@media (min-width: 1024px) {
  .hero-media { aspect-ratio: 1410 / 1083; }
  .section { padding: 104px 0; }
  .section-head h2 { font-size: 40px; }

  .hero h1 { font-size: 56px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }

  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-grid { grid-template-columns: repeat(4, 1fr); }

  .order-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
  .order-submit { width: auto; }
}

/* На очень узких экранах прячем кнопку в шапке, чтобы она не вызывала переполнение */
@media (max-width: 339px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media__item { animation: none; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ ОКНО РЕЗУЛЬТАТА ЗАЯВКИ ============ */
.order-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.order-dialog::backdrop {
  background: rgba(18, 24, 21, .55);
  backdrop-filter: blur(3px);
}

.order-dialog__inner {
  padding: 32px 28px 26px;
  text-align: center;
}

.order-dialog__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.order-dialog.is-error .order-dialog__icon { background: #c62828; }

.order-dialog__title { margin-bottom: 10px; font-size: 22px; }

.order-dialog__text { color: var(--text-muted); font-size: 15px; }
.order-dialog__text a { color: var(--accent); text-decoration: underline; }

.order-dialog__button { margin-top: 22px; min-width: 140px; }

.order-dialog[open] { animation: order-dialog-in .2s ease; }

@keyframes order-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}