:root {
  --blue: #2573e5;
  --blue-dark: #155fc4;
  --orange: #f59e0b;
  --text: #1f2937;
  --muted: #64748b;
  --soft: #f3f4f6;
  --white: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 60px rgba(31, 41, 55, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 96px;
}

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 12px 0;
  color: #334155;
}

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

.header-actions, .button-row, .footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(37, 115, 229, .25); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-soft { color: var(--blue); background: #eaf2ff; }
.btn-outline { color: var(--blue); background: white; border: 1px solid rgba(37, 115, 229, .28); }
.btn-large { min-height: 58px; padding: 16px 28px; font-size: 17px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  min-height: 720px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 120px 0 150px;
}

.hero h1, .page-hero h1 {
  max-width: 880px;
  margin: 12px 0 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p, .page-hero p, .lead {
  max-width: 760px;
  color: #475569;
  font-size: 20px;
}

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

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

.section { padding: 92px 0; }
.section.soft, .about-band { background: var(--soft); }

.section h2 {
  max-width: 860px;
  margin: 10px 0 24px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 48px;
  align-items: center;
}

.stats-card, .contact-card, .info-card, .product-card, .project-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-card {
  padding: 42px;
  display: grid;
  gap: 10px;
}

.stats-card strong {
  color: var(--blue);
  font-size: 58px;
  line-height: 1;
}

.stats-card span {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.city-seo {
  background: #ffffff;
}

.city-card {
  display: grid;
  gap: 10px;
  padding: 34px;
  border-radius: 8px;
  color: white;
  background: #0f2747;
  box-shadow: var(--shadow);
}

.city-card strong {
  color: white;
  font-size: 42px;
  line-height: 1;
}

.city-card span {
  margin-bottom: 16px;
  color: #dbeafe;
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-card {
  padding: 28px;
  min-height: 220px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.info-card h3, .product-card h3, .project-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.info-card p, .product-card p, .project-card p { color: var(--muted); }

.card-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #75a9ff);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
}

.steps span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.steps p { margin: 0; font-weight: 700; }

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-card div { padding: 24px; }

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.section-action { margin-top: 34px; }

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

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

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.home-project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 41, 55, .12);
}

.project-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.project-image-button::after {
  content: "Увеличить фото";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(37, 115, 229, .94);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.project-image-button:hover::after,
.project-image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.project-image-button:hover img,
.project-image-button:focus-visible img {
  transform: scale(1.035);
}

.home-project-card .project-image-button {
  aspect-ratio: 4 / 3;
}

.home-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-project-card div {
  padding: 22px;
}

.home-project-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
}

.home-project-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.home-project-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.request-band {
  color: white;
  background: #0f2747;
}

.request-band .eyebrow, .request-band h2, .request-band p { color: white; }
.request-band .eyebrow::before { background: var(--orange); }

.inline-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: white;
  border-radius: 8px;
}

input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: white;
}

textarea { resize: vertical; }

.page-hero {
  padding: 128px 0 76px;
  background: linear-gradient(180deg, #eef5ff, #fff);
}

.product-detail {
  display: grid;
  gap: 34px;
}

.product-detail > img, .rounded-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.detail-grid article {
  padding: 26px;
  border-radius: 8px;
  background: var(--soft);
}

.check-list li, .detail-grid li { margin-bottom: 10px; }

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}

.project-card > .project-image-button {
  height: 220px;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-body { padding: 24px; }
.year {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 18px 0 0;
  font-size: 14px;
}

dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; }

.projects-list {
  display: grid;
  gap: 28px;
}

.projects-list .project-card {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) 1fr;
  align-items: stretch;
}

.projects-list .project-card img {
  height: 100%;
  min-height: 320px;
  background: var(--soft);
}

.projects-list .project-card > .project-image-button {
  height: 100%;
  min-height: 320px;
}

.contact-card { padding: 34px; }

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.lead-form .wide, .lead-form label:has(textarea) { grid-column: 1 / -1; }

.site-footer {
  padding: 72px 0;
  color: white;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 46px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
}

.site-footer p, .site-footer a { color: #d1d5db; }
.site-footer h3 { margin-top: 0; }
.footer-nav { display: grid; gap: 10px; }
.footer-buttons { margin-top: 24px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, .55);
}

.modal.is-open { display: flex; }

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  border-radius: 8px;
  background: white;
}

.gallery-modal {
  padding: 28px;
}

.gallery-panel {
  width: min(1180px, 100%);
  padding: 22px;
}

.gallery-header {
  padding: 0 56px 14px 0;
}

.gallery-header span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-header h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
}

.gallery-image {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  cursor: pointer;
  font-size: 28px;
}

.calc-form {
  display: grid;
  gap: 16px;
}

.calc-result {
  display: block;
  padding: 18px;
  border-radius: 8px;
  color: var(--blue);
  background: #eaf2ff;
  font-weight: 900;
}

.muted { color: var(--muted); }

.seo-copy {
  max-width: 920px;
}

.seo-copy h2 {
  max-width: 900px;
}

.seo-copy p {
  color: #475569;
  font-size: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.faq-list details {
  padding: 22px 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .header-grid { grid-template-columns: auto 1fr auto; }
  .main-nav, .header-actions {
    position: fixed;
    left: 20px;
    right: 20px;
    display: none;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav {
    top: 88px;
    padding: 22px;
    border-radius: 8px 8px 0 0;
    flex-direction: column;
    gap: 8px;
  }
  .header-actions {
    top: 360px;
    padding: 0 22px 22px;
    border-radius: 0 0 8px 8px;
  }
  body.nav-open .main-nav, body.nav-open .header-actions { display: flex; }
  .nav-toggle { display: block; justify-self: end; }
  .two-col, .footer-grid, .projects-list .project-card { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand img { width: 118px; }
  .hero { min-height: 650px; background-position: 58% center; }
  .hero-inner { padding: 80px 0 100px; }
  .hero h1, .page-hero h1 { font-size: 38px; }
  .hero p, .page-hero p, .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .cards-3, .cards-4, .detail-grid, .lead-form, .home-project-grid { grid-template-columns: 1fr; }
  .stats-card strong { font-size: 42px; }
  .steps li { grid-template-columns: 52px 1fr; }
  .footer-grid { gap: 28px; }
  .gallery-modal { padding: 12px; }
  .gallery-panel { padding: 14px; }
  .gallery-image { max-height: calc(100vh - 160px); }
}
