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

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --accent: #f5b731;
  --accent-hover: #ffc94d;
  --accent-glow: rgba(245, 183, 49, 0.25);
  --text: #e8edf5;
  --text-muted: #8b95a8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --font: 'Manrope', system-ui, sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 16px;
  background: var(--accent);
  color: #0a0e17;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo__text span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity var(--transition);
}

.header__phone:hover {
  opacity: 0.8;
}

.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);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #0a0e17;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 14, 23, 0.92) 0%, rgba(10, 14, 23, 0.75) 50%, rgba(10, 14, 23, 0.9) 100%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 183, 49, 0.15);
  border: 1px solid rgba(245, 183, 49, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 48px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section common */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header--light h2 {
  color: var(--text);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 183, 49, 0.2);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services__list {
  list-style: none;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services__list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.services__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Areas */
.areas {
  background: linear-gradient(180deg, var(--bg) 0%, #0d1220 100%);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.areas__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.area-tag {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.area-tag--main {
  background: rgba(245, 183, 49, 0.12);
  border-color: rgba(245, 183, 49, 0.3);
  color: var(--accent);
  font-weight: 700;
}

.areas__note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Prices */
.prices {
  background: linear-gradient(180deg, var(--bg) 0%, #0d1220 100%);
}

.price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.price-tab {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.price-tab:hover {
  border-color: rgba(245, 183, 49, 0.3);
  color: var(--text);
}

.price-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0e17;
}

.price-panels {
  position: relative;
}

.price-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.price-panel.active {
  display: block;
}

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

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-table thead {
  background: rgba(245, 183, 49, 0.1);
}

.price-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.price-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.price-table td:nth-child(2) {
  color: var(--text-muted);
  white-space: nowrap;
  width: 80px;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  width: 120px;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.prices__note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-loading {
  margin: 48px auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.server-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 200px;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.server-error__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.server-error__text {
  margin: 0;
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.server-error__retry {
  margin-top: 8px;
}

.calc-layout > .server-error {
  grid-column: 1 / -1;
  min-height: 280px;
}

/* Calculator */
.calculator {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.calc-toolbar {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-search {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.calc-search:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-cat {
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.calc-cat:hover {
  border-color: rgba(245, 183, 49, 0.3);
  color: var(--text);
}

.calc-cat.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0e17;
}

.calc-catalog {
  flex: 1;
  overflow-y: auto;
  max-height: 560px;
  padding: 8px;
}

.calc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.calc-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.calc-item--active {
  background: rgba(245, 183, 49, 0.08);
  border: 1px solid rgba(245, 183, 49, 0.15);
}

.calc-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.calc-item__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.calc-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.calc-item__price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.calc-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.calc-qty-input {
  width: 52px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.calc-qty-input::-webkit-outer-spin-button,
.calc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-qty-input:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.calc-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-summary__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.calc-summary__list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.calc-summary__empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.calc-summary__row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.calc-summary__name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}

.calc-summary__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-summary__sum {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
  text-align: right;
}

.calc-summary__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.calc-summary__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.4;
}

.calc-check input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.calc-check em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.calc-summary__totals {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-summary__total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-summary__total-row--final {
  font-size: 1.1rem;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.calc-summary__total-row--final strong {
  font-size: 1.5rem;
  color: var(--accent);
}

.calc-summary__extra {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.calc-summary .btn + .btn {
  margin-top: -4px;
}

.calc-summary .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Advantages */
.advantages {
  background: linear-gradient(135deg, #111827 0%, #0a0e17 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.advantage {
  text-align: center;
  padding: 24px;
}

.advantage__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(245, 183, 49, 0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.advantage h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.advantage p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Team */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-card__exp {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Process */
.process {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e17;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, #0d1220 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact__info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity var(--transition);
}

.contact__item:hover {
  opacity: 0.8;
}

.contact__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--accent);
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-btn .icon {
  width: 24px;
  height: 24px;
  stroke: #0a0e17;
}

.contact__item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact__item span {
  font-weight: 600;
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--text-muted);
}

.order-estimate {
  padding: 14px 16px;
  background: rgba(245, 183, 49, 0.06);
  border: 1px solid rgba(245, 183, 49, 0.2);
  border-radius: var(--radius);
}

.order-estimate__label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.order-estimate__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-estimate__line {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.order-estimate__line:last-child {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 183, 49, 0.15);
  font-weight: 700;
  color: var(--accent);
}

.contact__form textarea[name="userNote"] {
  min-height: 140px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field__error {
  font-size: 0.8rem;
  color: #fca5a5;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  padding: 12px 16px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-error .server-error {
  min-height: auto;
  padding: 24px 16px;
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.2);
}

.form-error .server-error__title {
  color: #fca5a5;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  text-align: right;
}

.footer__copy p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Float button */
.float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0e17;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px var(--accent-glow);
  z-index: 999;
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

/* Responsive */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-summary {
    position: static;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__grid,
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__copy {
    grid-column: 1 / -1;
    text-align: left;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: var(--radius);
  }

  .nav a:active {
    background: rgba(245, 183, 49, 0.1);
    color: var(--accent);
  }

  .nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .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);
  }
}

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

  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 32px) 0 56px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero__desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero__badge {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .stat span {
    font-size: 0.8rem;
  }

  section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .services__grid,
  .advantages__grid,
  .process__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 280px;
  }

  .service-card {
    padding: 24px;
  }

  .price-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }

  .price-tabs::-webkit-scrollbar {
    display: none;
  }

  .price-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .price-table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .price-table tbody tr:last-child {
    border-bottom: none;
  }

  .price-table td {
    display: block;
    padding: 0;
    border: none;
    width: auto !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .price-table td:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .price-table td:nth-child(2) {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .price-table td:nth-child(2)::before {
    content: 'Ед. изм.: ';
    color: var(--text-muted);
  }

  .price-table td:last-child {
    font-size: 1rem;
  }

  .price-table td:last-child::before {
    content: 'Цена: ';
    color: var(--text-muted);
    font-weight: 400;
  }

  .calc-panel {
    min-height: auto;
  }

  .calc-toolbar {
    padding: 16px;
  }

  .calc-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .calc-categories::-webkit-scrollbar {
    display: none;
  }

  .calc-cat {
    flex-shrink: 0;
  }

  .calc-catalog {
    max-height: none;
    padding: 4px 8px 12px;
  }

  .calc-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .calc-item__qty {
    justify-content: flex-end;
  }

  .calc-qty-btn {
    width: 44px;
    height: 44px;
  }

  .calc-qty-input {
    width: 56px;
    height: 44px;
    font-size: 1rem;
  }

  .calc-summary {
    padding: 20px 16px;
  }

  .calc-summary__list {
    max-height: 180px;
  }

  .contact__info h2 {
    font-size: 1.6rem;
  }

  .contact__form {
    padding: 20px 16px;
  }

  .contact__form input,
  .contact__form textarea {
    font-size: 16px;
    padding: 16px;
  }

  .btn {
    padding: 16px 24px;
    min-height: 48px;
  }

  .footer {
    padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .float-btn {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    margin-bottom: 36px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .team-card__photo {
    aspect-ratio: 1;
  }

  .advantage__num {
    font-size: 2rem;
  }

  .calc-summary__total-row--final strong {
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .logo__text {
    font-size: 0.95rem;
  }

  .price-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
