
:root {
  --bg: #0c0f12;
  --bg-soft: #12171d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f3f5f7;
  --muted: #aab3bd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d9a35f;
  --accent-2: #ffcc8a;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(217, 163, 95, 0.12), transparent 28%),
    linear-gradient(180deg, #090b0e 0%, #11161b 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.hidden { display: none !important; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 92px 0; }
.section-dark {
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-accent {
  background: linear-gradient(180deg, rgba(217, 163, 95, 0.10), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(217, 163, 95, 0.18);
  border-bottom: 1px solid rgba(217, 163, 95, 0.18);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-heading.narrow { max-width: 680px; }

.calc-instruction-toggle {
  margin-top: 18px;
}

.calc-intro-mobile {
  display: none;
}

.calc-instruction-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.35s ease, opacity 0.24s ease, transform 0.24s ease, margin-top 0.24s ease;
  margin-top: 0;
}

.calc-instruction-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}

.calc-instruction-panel-inner {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(217, 163, 95, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.calc-instruction-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.calc-instruction-copy > p,
.calc-instruction-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.calc-instruction-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.calc-instruction-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.calc-instruction-close {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.section-heading h2,
.hero-copy h1,
.contact-copy h2,
.cta-box h2,
.overlay-head h2,
.detail-copy h2 {
  margin: 0 0 14px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.section-heading h2,
.contact-copy h2,
.cta-box h2,
.overlay-head h2,
.detail-copy h2 {
  font-size: clamp(32px, 5vw, 48px);
}

.section-heading p,
.hero-text,
.contact-copy p,
.cta-box p,
.detail-description,
.overlay-head p,
.calc-summary-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8, 11, 14, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.logo-copy {
  display: block;
}

.logo strong,
.logo small { display: block; }
.logo strong { font-size: 14px; letter-spacing: 0.12em; }
.logo small { font-size: 12px; color: var(--muted); margin-top: 2px; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.header-social-link {
  white-space: nowrap;
}

.header-icon-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}

.telegram-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--muted);
}
.menu a:hover,
.footer-links a:hover,
.contact-points a:hover { color: var(--white); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: 0.24s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-full { width: 100%; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #b97b2d);
  color: #1b1206;
  box-shadow: 0 16px 40px rgba(185, 123, 45, 0.24);
}
.btn-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.hero { padding: 70px 0 42px; }
.hero-grid,
.contact-grid,
.cta-box,
.bot-calc-layout {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: calc(100vh - 140px);
}
.hero-copy h1 {
  font-size: clamp(40px, 7vw, 72px);
  max-width: 760px;
}
.hero-text {
  max-width: 720px;
  margin-top: 20px;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card,
.feature-card,
.project-card,
.calculator-card,
.contact-form,
.cta-box,
.hero-frame,
.calc-summary-card,
.subproject-card,
.overlay-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card { padding: 18px; }
.stat-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}
.stat-card span { color: var(--muted); }

.hero-frame {
  position: relative;
  padding: 18px;
}
.glow-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(217, 163, 95, 0.22), transparent 35%, rgba(255, 255, 255, 0.08));
  z-index: -1;
}
.hero-photo,
.project-photo,
.subproject-photo {
  position: relative;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background-size: cover;
  background-position: center;
}
.hero-photo::before,
.project-photo::before,
.subproject-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.58));
}
.hero-photo span,
.project-photo span,
.subproject-photo span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.hero-photo-main { background-image: url('images/hero-main.svg'); }
.project-photo-1 { background-image: url('images/category-glued-cover.svg'); }
.project-photo-2 { background-image: url('images/category-frame-cover.svg'); }
.project-photo-3 { background-image: url('images/category-log-cover.svg'); }

.hero-badge {
  margin-top: 16px;
  display: inline-flex;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(217, 163, 95, 0.12);
  border: 1px solid rgba(217, 163, 95, 0.26);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
}

.features-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.features-grid {
  grid-template-columns: repeat(4, 1fr);
}
.feature-card {
  padding: 24px;
}
.feature-card h3,
.project-body h3,
.appliances-head h3,
.subproject-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.feature-card p,
.project-body p,
.subproject-body p,
.appliances-head p,
.form-message,
.gallery-caption,
.detail-meta {
  color: var(--muted);
  line-height: 1.7;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}
.project-card {
  padding: 0;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
}
.project-card:hover { transform: translateY(-2px); }
.project-body { padding: 24px; }
.project-body ul,
.subproject-body ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.project-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-2);
  font-weight: 700;
}

.calc-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.calc-summary-card {
  padding: 22px;
}
.calc-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
}

.bot-calc-layout {
  grid-template-columns: 1.16fr 0.84fr;
  align-items: start;
}
.bot-calc-main {
  display: grid;
  gap: 18px;
}
.calculator-card {
  padding: 26px;
}
.calculator-card-advanced {
  background: rgba(255, 255, 255, 0.05);
}
.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mode-btn {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}
.mode-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #b97b2d);
  color: #1b1206;
  border-color: transparent;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid-advanced {
  grid-template-columns: repeat(2, 1fr);
}
label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  resize: vertical;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 54px;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(217, 163, 95, 0.28);
  border-color: rgba(217, 163, 95, 0.36);
}
.full-width { grid-column: 1 / -1; }

.appliances-inline {
  margin-top: 4px;
}

.appliances-total strong { color: var(--accent-2); }
.appliances-total {
  white-space: nowrap;
}

.appliances-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(217, 163, 95, 0.22);
  background: linear-gradient(135deg, rgba(217, 163, 95, 0.16), rgba(255, 255, 255, 0.04));
  color: var(--white);
  cursor: pointer;
}

.appliances-toggle-copy {
  display: block;
}

.appliances-toggle-copy strong {
  font-size: 22px;
}

.appliances-panel {
  margin-top: 16px;
}

.appliances-panel.hidden {
  display: none;
}

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

.appliances-panel > .appliances-grid {
  margin-top: 14px;
}
.appliance-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.appliance-name {
  font-size: 14px;
  line-height: 1.45;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.counter button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
}
.counter strong {
  min-width: 22px;
  text-align: center;
}
.calc-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.bot-calc-side {
  position: sticky;
  top: 92px;
  align-self: start;
}
.calc-result-rich {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.calc-result-rich .btn + .btn {
  margin-top: 12px;
}
.calc-result-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.calc-result-price {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 16px;
}
.calc-doc-cost {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.calc-doc-cost span {
  color: var(--muted);
  line-height: 1.6;
}
.calc-doc-cost strong {
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.1;
  font-weight: 800;
}

.calc-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.calc-result-rich .mode-switch {
  margin-top: auto;
}
.calc-fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.calc-fact-row span { color: var(--muted); }

.cta-box {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 34px;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-heading {
  max-width: 760px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}
.contact-groups {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  flex: 1 1 auto;
}
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.contact-card h3 {
  margin: 0;
  font-size: 20px;
}

.contact-card-intro {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.contact-card-combined {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-compact-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.contact-compact-item strong {
  display: block;
  margin-bottom: 8px;
}

.contact-phone-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-phone-line > a,
.contact-compact-item > a {
  color: var(--muted);
}
.contact-icon-links,
.social-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-compact-item .contact-icon-links,
.contact-socials-group .social-icon-row {
  margin-top: 10px;
}

.contact-socials-group {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.icon-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.icon-link.is-disabled,
.header-icon-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.social-label-link {
  font-size: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-form {
  align-self: start;
  padding: 28px;
  padding-bottom: 20px;
  margin-top: 34px;
}

.contact-form .btn-full {
  margin-top: 14px;
}

.form-message {
  min-height: 0;
  margin-top: 8px;
}
.form-message .success { color: var(--accent-2); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-wrap p {
  margin: 0;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.footer-mobile-grid {
  display: none;
}

.overlay.hidden { display: none; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(12px);
  padding: 22px;
  overflow: auto;
}
.overlay-panel {
  position: relative;
  margin: 0 auto;
  width: min(1320px, 100%);
  padding: 28px;
}
.overlay-panel-wide {
  min-height: calc(100vh - 44px);
}
.overlay-panel-detail {
  width: min(1400px, 100%);
}
.overlay-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
  z-index: 3;
}
.overlay-head {
  padding-right: 60px;
  margin-bottom: 24px;
}
.subproject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.subproject-card {
  overflow: hidden;
  cursor: pointer;
}
.subproject-card:hover { transform: translateY(-2px); }
.portfolio-route-head {
  display: grid;
  gap: 18px;
}
.portfolio-route-head .subproject-grid {
  margin-top: 8px;
}
.portfolio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 700;
}
.subproject-photo {
  min-height: 220px;
}
.subproject-body { padding: 20px; }
.subproject-price {
  margin-top: 14px;
  color: var(--accent-2);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  grid-template-areas:
    "head gallery"
    "meta gallery"
    "description gallery";
  gap: 20px 24px;
  align-items: start;
}
.detail-head {
  grid-area: head;
  min-width: 0;
}
.detail-meta {
  grid-area: meta;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.detail-meta-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.detail-meta-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}
.detail-gallery-wrap {
  grid-area: gallery;
  min-width: 0;
}
.detail-description {
  grid-area: description;
  min-width: 0;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 12px;
  align-items: center;
}
.gallery-arrow,
.lightbox-arrow {
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
}
.gallery-main {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  background: rgba(255,255,255,0.04);
  cursor: zoom-in;
  touch-action: pan-y;
}
.gallery-main img,
.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  margin-top: 0;
  font-weight: 700;
  color: var(--white);
}
.gallery-stage {
  margin-top: 14px;
  margin-bottom: 16px;
}
.gallery-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.gallery-counter {
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}
.gallery-stage-description {
  margin-top: 10px;
}
.gallery-stage-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.gallery-thumb {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}
.gallery-thumb.is-active {
  opacity: 1;
  border-color: rgba(217,163,95,0.48);
}
.gallery-thumb img {
  width: 100%;
  height: 84px;
  object-fit: cover;
}

.lightbox-panel {
  min-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  gap: 16px;
  align-items: center;
}
.lightbox-image-wrap {
  height: calc(100vh - 88px);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

@media (max-width: 1180px) {
  .bot-calc-layout,
  .detail-layout,
  .hero-grid,
  .contact-grid,
  .cta-box,
  .features-grid,
  .projects-grid,
  .subproject-grid {
    grid-template-columns: 1fr;
  }
  .bot-calc-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .form-grid-advanced,
  .appliances-grid,
  .calc-summary-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .appliances-toggle {
    padding: 20px;
  }
  .lightbox-panel,
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-arrow,
  .lightbox-arrow {
    height: 52px;
  }
  .gallery-main {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 60px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
  }
  .header-actions {
    width: auto;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
  }
  .menu {
    flex-wrap: wrap;
    gap: 14px;
  }
  .section {
    padding: 68px 0;
  }
  .overlay {
    padding: 10px;
  }
  .overlay-panel,
  .contact-form,
  .calculator-card,
  .cta-box {
    padding: 18px;
  }

  .overlay-panel-detail {
    padding: 20px 16px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "gallery"
      "meta"
      "description";
    gap: 16px;
  }

  .detail-gallery {
    display: block;
  }

  .gallery-arrow {
    display: none;
  }

  .gallery-main {
    min-height: auto;
    aspect-ratio: 4 / 3;
    max-height: 38vh;
  }

  .gallery-stage {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .gallery-stage-head {
    align-items: baseline;
  }

  .gallery-thumbs {
    display: none;
  }

  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== Обновления по запросу ===== */
.section-target {
  scroll-margin-top: 92px;
}

#hero,
#projects {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-grid {
  min-height: calc(100vh - 180px);
}

.hero-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-photo {
  flex: 1 1 auto;
  min-height: 620px;
}

.projects-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  min-height: 300px;
}

.project-card .project-photo {
  min-height: 100%;
  height: 100%;
  border-radius: 0;
}

.project-card .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-actions {
  align-items: stretch;
}

.calc-actions .btn {
  flex: 1 1 0;
}

@media (min-width: 1181px) {
  .section-target {
    scroll-margin-top: 104px;
  }

  #projects,
  #calculator,
  #faq,
  #contact {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
  }

  #projects > .container,
  #calculator > .container,
  #faq > .container,
  #contact > .container {
    width: min(1080px, calc(100% - 64px));
  }

  #faq > .container {
    width: min(1020px, calc(100% - 64px));
  }

  .projects-grid {
    max-width: 1080px;
    margin: 0 auto;
    gap: 18px;
  }

  .project-card {
    min-height: 276px;
  }

  .project-body {
    padding: 20px;
  }

  .project-link {
    margin-top: 14px;
  }

  .bot-calc-layout {
    max-width: 1080px;
    margin: 0 auto;
  }

  .faq-grid {
    max-width: 1020px;
    margin: 0 auto;
  }

  .contact-grid {
    max-width: 1080px;
    margin: 0 auto;
  }
}

@media (max-width: 1180px) {
  #hero,
  #projects {
    min-height: auto;
    display: block;
  }

  .hero-photo {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card .project-photo {
    min-height: 260px;
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  }
}

@media (max-width: 760px) {
  .hero-photo {
    min-height: 320px;
  }

  .appliances-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .appliances-total {
    white-space: normal;
  }

  .calc-actions .btn {
    width: 100%;
  }
}


.faq-grid {
  display: grid;
  gap: 18px;
}

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

.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.faq-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 22px;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-2);
  font-size: 26px;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.22s ease, transform 0.22s ease;
}

.faq-answer.is-open {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer > p,
.faq-hide {
  margin-left: 24px;
  margin-right: 24px;
}

.faq-answer > p {
  padding-top: 0;
}

.faq-hide {
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin: 0 2px;
  border-radius: 999px;
  border: 1px solid rgba(217, 163, 95, 0.28);
  background: rgba(217, 163, 95, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.faq-inline-link:hover {
  background: rgba(217, 163, 95, 0.18);
  border-color: rgba(217, 163, 95, 0.4);
}

.detail-description p {
  margin: 0 0 14px;
}

@media (max-width: 1100px) {
  .projects-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .bot-calc-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .hero-copy h1 {
    margin-bottom: 10px;
    line-height: 1.06;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .section-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .section-heading p,
  .hero-text,
  .contact-copy p {
    line-height: 1.62;
  }

  .logo {
    gap: 10px;
    min-width: 0;
  }

  .logo-image {
    width: 42px;
    height: 42px;
  }

  .logo-copy {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-quick-link {
    min-height: 30px;
    padding: 0;
    font-size: 13px;
    justify-content: center;
  }

  .header-icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
  }

  .header-icon-button span {
    display: none;
  }

  .contact-phone-line {
    align-items: center;
  }

  .contact-phone-line > a {
    font-size: 16px;
  }

  .contact-form {
    margin-top: 0;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
    margin: 22px 0 24px;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
  }

  .hero-stats,
  .projects-grid,
  .faq-grid,
  .calc-summary-grid,
  .appliances-grid,
  .form-grid-advanced {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .project-photo,
  .hero-photo,
  .subproject-photo {
    min-height: 200px;
  }

  .projects-grid {
    gap: 16px;
  }

  .project-card {
    min-height: 0;
  }

  .project-body {
    padding: 18px;
  }

  .project-body h3 {
    font-size: 24px;
  }

  .project-body p,
  .subproject-body p {
    line-height: 1.62;
  }

  .project-link {
    margin-top: 12px;
  }

  .calculator-card,
  .contact-form,
  .contact-card {
    padding: 16px;
  }

  .form-grid {
    gap: 14px;
  }

  label span {
    margin-bottom: 6px;
  }

  input,
  textarea,
  select {
    padding: 14px 14px;
  }

  .appliances-toggle {
    padding: 18px 18px;
  }

  .appliances-panel {
    margin-top: 12px;
  }

  .calc-actions {
    margin-top: 14px;
    gap: 10px;
  }

  .calc-summary-grid {
    gap: 12px;
    margin-bottom: 18px;
  }

  .calc-result-rich {
    padding: 18px;
  }

  .calc-result-price {
    margin-bottom: 12px;
  }

  .calc-doc-cost,
  .calc-facts {
    margin-bottom: 14px;
  }

  .faq-grid {
    gap: 12px;
  }

  .faq-question {
    padding: 18px;
    font-size: 18px;
    gap: 12px;
  }

  .faq-question::after {
    font-size: 22px;
  }

  .faq-answer > p,
  .faq-hide {
    margin-left: 18px;
    margin-right: 18px;
  }

  .faq-answer > p {
    line-height: 1.62;
  }

  .faq-hide {
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .contact-heading {
    margin-bottom: 24px;
  }

  .contact-groups {
    margin-top: 18px;
    gap: 14px;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-card-intro {
    margin-top: 8px;
    line-height: 1.6;
  }

  .contact-compact-list {
    margin-top: 18px;
    gap: 16px;
  }

  .footer-wrap {
    display: block;
  }

  .footer-wrap > #footerCompany,
  .footer-wrap > .footer-links {
    display: none;
  }

  .footer-mobile-grid {
    display: grid;
    gap: 10px;
  }

  .footer-mobile-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: baseline;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
  }

  .footer-mobile-row span,
  .footer-mobile-row a {
    min-width: 0;
  }

  .footer-mobile-row a {
    justify-self: end;
    text-align: right;
    color: var(--muted);
  }

  .calc-intro-desktop {
    display: none;
  }

  .calc-intro-mobile {
    display: block;
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.75;
  }

  .calc-instruction-toggle {
    margin-top: 0;
  }

  .calc-instruction-panel-inner {
    padding: 18px;
  }

  .calculator-card-advanced .form-grid-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .calculator-card-advanced .form-grid-advanced > label:first-child,
  .calculator-card-advanced .form-grid-advanced > label:nth-child(2),
  .calculator-card-advanced .form-grid-advanced > .full-width {
    grid-column: 1 / -1;
  }
}
