:root {
  --bg: #efeee9;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #62605a;
  --soft: #8a857b;
  --line: rgba(21, 21, 21, 0.12);
  --dark: #111111;
  --dark-2: #242424;
  --accent: #f26a21;
  --accent-dark: #c94f13;
  --steel: #d8d7d2;
  --cream: #f8f6f1;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(239, 238, 233, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 174px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  color: #363430;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.phone-link {
  font-weight: 900;
  white-space: nowrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(242, 106, 33, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: #151515;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 790px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 38%, rgba(0, 0, 0, 0.16) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 152px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 54px;
  align-items: end;
}

.hero-copy {
  max-width: 800px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  max-width: 870px;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.quick-form,
.lead-form {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.quick-form h2,
.lead-form h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.quick-form p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.form-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label span {
  color: #3a3936;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.14);
}

.form-status {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-loading {
  background: #fff3e9;
  color: #8d3d0d;
}

.form-status.is-success {
  background: #e8f6ed;
  color: #176733;
}

.form-status.is-error {
  background: #fdebea;
  color: #98251e;
}

.form-note,
.privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-note a {
  color: var(--ink);
  font-weight: 900;
}

.trust-strip {
  background: var(--dark);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid div {
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.trust-grid .trust-free {
  position: relative;
  background: linear-gradient(135deg, rgba(242, 106, 33, 0.22), rgba(242, 106, 33, 0.06));
  box-shadow: inset 0 3px 0 var(--accent);
}

.trust-grid .trust-free strong {
  color: #fff;
  padding-right: 54px;
}

.trust-grid .trust-free::after {
  content: "0 ₽";
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

section[id],
.contacts[id] {
  scroll-margin-top: 96px;
}

.section-head,
.production-layout,
.lead-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: start;
}

.section-head-wide {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
}

.section-head p,
.production-copy p,
.lead-copy p,
.contacts p,
.estimate-box p {
  color: var(--muted);
  font-size: 18px;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.partners-panel {
  margin-top: 40px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}

.partners-panel h3 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(24px, 2.5vw, 34px);
}

.client-row-full {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.client-logo {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.client-logo img {
  width: 128px;
  height: 62px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.client-row-full .client-logo:nth-child(1) img {
  width: 74px;
  height: 74px;
}

.client-row-full .client-logo:nth-child(2) img {
  width: 150px;
}

.client-row-full .client-logo:nth-child(3) img,
.client-row-full .client-logo:nth-child(4) img,
.client-row-full .client-logo:nth-child(7) img {
  width: 136px;
}

.client-row-full .client-logo:nth-child(5) img,
.client-row-full .client-logo:nth-child(6) img {
  width: 96px;
  height: 70px;
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}

.pavilion-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pavilion-card,
.work-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.pavilion-card-main {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
}

.pavilion-card-accent {
  border-color: rgba(242, 106, 33, 0.38);
}

.pavilion-card figure {
  margin: 0;
  background: transparent;
}

.pavilion-card figure > img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.pavilion-card:not(.pavilion-card-main) figure {
  height: auto;
}

.pavilion-body {
  padding: 26px;
}

.pavilion-body p,
.work-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.mini-gallery img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(242, 106, 33, 0.45);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  width: min(1120px, 100%);
  max-height: calc(100vh - 86px);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.lightbox figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.estimate {
  padding: 64px 0;
  background: var(--dark);
  color: #fff;
}

.estimate-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.estimate-box p {
  color: rgba(255, 255, 255, 0.72);
}

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

.check-list span {
  padding: 16px 16px 16px 42px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.check-list span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.check-list span.is-free {
  border-color: rgba(242, 106, 33, 0.68);
  background: rgba(242, 106, 33, 0.18);
  color: #fff;
}

.check-list span.is-free::after {
  content: "0 ₽";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.production {
  background: var(--cream);
}

.shop-bridge {
  max-width: 860px;
  margin: 0 auto;
}

.shop-bridge-content {
  max-width: none;
}

.shop-bridge-content p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.shop-lines {
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}

.shop-lines div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.shop-lines strong {
  font-size: 18px;
  line-height: 1.2;
}

.shop-lines span {
  color: var(--muted);
}

.shop-bridge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.production-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 244px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.process-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 22px;
}

.process-card span {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(21, 21, 21, 0.14);
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

.process-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-card-accent {
  border-color: rgba(242, 106, 33, 0.42);
  background: #141414;
  color: #fff;
}

.process-card-accent span {
  color: rgba(242, 106, 33, 0.28);
}

.process-card-accent p {
  color: rgba(255, 255, 255, 0.72);
}

.process-card-accent strong {
  color: #fff;
}

.structures {
  background: #e5e3dc;
}

.structures-head {
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.structures-head h2 {
  max-width: 760px;
}

.structures-intro {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.structures-intro p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.structures-showcase {
  display: grid;
  gap: 20px;
}

.structure-case {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.structure-case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.structure-case figure {
  margin: 0;
  background: #111;
}

.structure-case figure img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.structure-case-body {
  padding: 24px;
}

.structure-case-body span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.structure-case-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.structures-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.structures-case-grid .structure-case figure img {
  min-height: 220px;
}

.metalwork {
  background: #f6f4ef;
}

.metalwork-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.metalwork-head h2 {
  max-width: 760px;
  font-size: clamp(32px, 3.5vw, 50px);
}

.metalwork-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.metalwork-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metalwork-services article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.metalwork-services article {
  min-height: 210px;
  padding: 24px;
}

.metalwork-services span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.metalwork-services h3 {
  max-width: 320px;
}

.metalwork-services p {
  margin-bottom: 0;
  color: var(--muted);
}

.metalwork-media {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.metalwork-media-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.metalwork-media-head h3 {
  margin-bottom: 0;
}

.metalwork-media-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.metalwork-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metalwork-media-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f6f1;
}

.metalwork-media-grid img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.metalwork-media-grid h4 {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 16px;
  line-height: 1.15;
}

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

.work-grid-structures {
  grid-template-columns: repeat(3, 1fr);
}

.work-grid img {
  width: 100%;
  height: 236px;
  object-fit: cover;
}

.work-grid article {
  padding-bottom: 24px;
}

.work-grid h3,
.work-grid p {
  padding: 0 22px;
}

.work-grid h3 {
  margin-top: 22px;
}

.lead-section {
  background: var(--dark);
  color: #fff;
}

.lead-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.lead-direct {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.lead-direct span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.lead-direct a {
  font-size: 30px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contacts {
  padding: 78px 0 0;
  background: var(--cream);
}

.contacts-shell {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.contacts-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.contacts-head h2 {
  margin-bottom: 0;
}

.contacts-head p {
  margin-bottom: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-info-panel {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f6f1;
}

.contact-card-main {
  background: #141414;
  color: #fff;
}

.contact-card span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card-main span {
  color: rgba(255, 255, 255, 0.58);
}

.contact-card strong {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card-vk strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-card-vk svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0077ff;
  fill: #fff;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-map-link {
  border-color: var(--line);
  background: #fff;
}

.map-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9e6df;
}

.map-fallback {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.map-fallback strong {
  font-size: 16px;
  line-height: 1.2;
}

.map-fallback span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.map-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 520px;
}

.site-footer {
  margin-top: 46px;
  padding: 28px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.footer-inner strong {
  display: block;
  color: #fff;
  font-weight: 900;
}

.footer-logo {
  width: 172px;
  height: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
}

.footer-inner span {
  display: block;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links button,
.footer-links a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.back-top {
  color: var(--accent) !important;
}

.developer-credit {
  text-align: right;
}

.developer-credit a {
  color: #ff3b30;
  font-weight: 900;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.privacy-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-dialog {
  width: min(560px, 100%);
  position: relative;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-dialog h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.privacy-dialog p {
  color: var(--muted);
}

.privacy-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-panel {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 125;
  width: min(420px, calc(100% - 48px));
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.cookie-panel.is-visible {
  display: grid;
}

.cookie-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.cookie-panel .btn {
  min-height: 42px;
  padding: 10px 16px;
}

.floating-call {
  display: none;
}

@media (max-width: 1080px) {
  .main-nav,
  .header-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 49;
    max-height: 0;
    overflow: hidden;
    background: rgba(239, 238, 233, 0.98);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.25s ease;
  }

  .mobile-menu.is-open {
    max-height: 420px;
  }

  .mobile-nav {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 24px;
    display: grid;
    gap: 8px;
  }

  .mobile-nav a {
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
  }

  .hero-content {
    min-height: 780px;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 128px;
  }

  .quick-form {
    max-width: 560px;
  }

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

  .section-head,
  .production-layout,
  .shop-bridge,
  .lead-layout,
  .estimate-box,
  .metalwork-layout,
  .contacts-head,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .metalwork-head {
    grid-template-columns: 1fr;
  }

  .structures-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .structure-case-hero {
    grid-template-columns: 1fr;
  }

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

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

  .pavilion-card-main {
    grid-template-columns: 1fr;
  }

  .pavilion-card figure > img {
    height: auto;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .site-header {
    background: #e5e6e6;
    overflow: visible;
    width: 100vw;
  }

  .header-inner {
    width: 100% !important;
    max-width: none;
    min-height: 62px;
    gap: 12px;
    padding: 0 14px;
  }

  .brand img {
    width: 122px;
  }

  .phone-link {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .menu-toggle {
    all: unset;
    box-sizing: border-box;
    position: static !important;
    z-index: 90;
    width: 74px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    font-family: Inter, system-ui, sans-serif;
    cursor: pointer;
  }

  .menu-toggle::after {
    content: "Меню";
  }

  .menu-toggle.is-active::after {
    content: "Закрыть";
  }

  .menu-toggle span {
    display: none;
  }

  .mobile-menu {
    top: 62px;
    width: 100vw;
  }

  .mobile-nav {
    width: calc(100% - 28px);
  }

  .hero {
    min-height: 0;
    display: block;
    padding-top: 62px;
    background: #111111;
  }

  .hero-media {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #222;
  }

  .hero-media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    min-height: 0;
    display: block;
    padding: 22px 0 30px;
  }

  .eyebrow {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .eyebrow::before {
    width: 26px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.08;
  }

  h2 {
    font-size: 26px;
    line-height: 1.1;
  }

  h3 {
    font-size: 21px;
  }

  .section-head p,
  .production-copy p,
  .lead-copy p,
  .contacts p,
  .estimate-box p {
    font-size: 15px;
  }

  .hero-copy p {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .hero-proof,
  .quick-form {
    display: none;
  }

  .trust-grid,
  .client-row,
  .pavilion-showcase,
  .structures-case-grid,
  .metalwork-services,
  .structures-intro,
  .work-grid,
  .check-list,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contacts-shell {
    padding: 18px;
    border-radius: 10px;
  }

  .contacts-head {
    margin-bottom: 22px;
    gap: 14px;
  }

  .contacts-head h2 {
    font-size: 34px;
    line-height: 1.06;
  }

  .contacts-grid {
    gap: 14px;
  }

  .contact-card {
    padding: 16px;
    border-radius: 10px;
  }

  .contact-card strong {
    font-size: 17px;
  }

  .contact-card-vk strong {
    align-items: flex-start;
  }

  .contact-card-vk svg {
    width: 26px;
    height: 26px;
  }

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

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    border-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid div {
    min-width: 0;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-grid strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .trust-grid span {
    font-size: 11px;
    line-height: 1.35;
  }

  .section {
    padding: 62px 0;
  }

  section[id],
  .contacts[id] {
    scroll-margin-top: 76px;
  }

  .client-row {
    gap: 10px;
  }

  .client-logo {
    min-height: 74px;
    justify-content: center;
  }

  .client-row-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .client-row-full .client-logo img,
  .client-row-full .client-logo:nth-child(1) img,
  .client-row-full .client-logo:nth-child(2) img,
  .client-row-full .client-logo:nth-child(3) img,
  .client-row-full .client-logo:nth-child(4) img,
  .client-row-full .client-logo:nth-child(5) img,
  .client-row-full .client-logo:nth-child(6) img,
  .client-row-full .client-logo:nth-child(7) img {
    width: 116px;
    height: 54px;
  }

  .client-row-full .client-logo:nth-child(1) img {
    width: 64px;
    height: 64px;
  }

  .pavilion-card-main {
    grid-column: auto;
  }

  .pavilion-card:not(.pavilion-card-main) figure {
    height: auto;
  }

  .pavilion-card figure > img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .pavilion-body {
    padding: 20px;
  }

  .pavilion-body p,
  .structure-case-body p,
  .metalwork-services p,
  .shop-lines span {
    font-size: 14px;
    line-height: 1.45;
  }

  .mini-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .gallery-thumb {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }

  .mini-gallery img {
    height: 78px;
  }

  .estimate {
    padding: 52px 0;
  }

  .production-steps {
    grid-template-columns: 1fr;
  }

  .shop-bridge-media img {
    height: auto;
  }

  .shop-lines div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metalwork-head h2 {
    font-size: 27px;
  }

  .metalwork-services article {
    min-height: 0;
    padding: 20px;
  }

  .metalwork-services span {
    margin-bottom: 14px;
  }

  .metalwork-media {
    padding: 18px;
  }

  .metalwork-media-head {
    display: grid;
    gap: 8px;
  }

  .metalwork-media-grid {
    gap: 10px;
  }

  .work-grid img {
    grid-column: auto;
    height: auto;
    object-fit: contain;
  }

  .lead-form {
    padding: 20px;
  }

  .lead-direct a {
    font-size: 24px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 320px;
  }

  .map-fallback {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px;
  }

  .footer-inner {
    display: grid;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .developer-credit {
    text-align: left;
  }

  .cookie-panel {
    left: 14px;
    right: 14px;
    bottom: 74px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .floating-call {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 60;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .floating-call.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-inner {
    padding: 0 12px;
  }

  .brand img {
    width: 112px;
  }

  .menu-toggle {
    width: 70px;
    height: 36px;
    font-size: 12px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 24px;
  }

  .contacts-head h2 {
    font-size: 30px;
  }

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

  .client-row-full {
    gap: 16px;
  }

  .lead-direct a {
    font-size: 21px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 280px;
  }
}
