/* Основни стилове за многoстраничния сайт за строителни и покривни услуги. */
:root {
  --ink: #172126;
  --slate: #26343a;
  --red: #b52d25;
  --red-dark: #8f211b;
  --sand: #e2bd79;
  --paper: #f5f2ec;
  --white: #ffffff;
  --muted: #647077;
  --shadow: 0 16px 45px rgba(19, 29, 33, .13);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-white { background: var(--white); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.13; }
h1 { font-size: clamp(2.45rem, 5vw, 5.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
p { margin-top: 0; }
.lead { max-width: 780px; font-size: 1.18rem; color: #dce3e5; }
.section-intro { max-width: 750px; color: var(--muted); font-size: 1.08rem; }

.topbar { background: var(--red); color: var(--white); font-weight: 700; }
.topbar .container { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.topbar a { text-decoration: none; }
.site-header { position: sticky; z-index: 40; top: 0; background: rgba(23, 33, 38, .97); color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 26px; }
.brand { display: flex; align-items: center; color: var(--white); text-decoration: none; font-weight: 900; }
.brand-logo { width: 220px; height: 66px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; color: var(--white); background: var(--red); font-size: 1.55rem; }
.brand-text { line-height: 1.08; }
.brand-text small { display: block; color: var(--sand); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--sand); }
.nav .nav-phone { padding: 11px 16px; border-radius: 9px; background: var(--red); color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 2rem; cursor: pointer; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, rgba(13,20,23,.94) 0%, rgba(13,20,23,.73) 52%, rgba(13,20,23,.28) 100%), url('images/hero-roof.jpg') center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg, var(--red) 0 68%, var(--sand) 68%); }
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 90px 0; }
.hero-label { display: inline-block; margin-bottom: 20px; color: var(--sand); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 span { color: var(--sand); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 2px solid var(--red); border-radius: 9px; background: var(--red); color: var(--white); text-decoration: none; font-weight: 800; transition: .2s; }
.button:hover { transform: translateY(-2px); background: var(--red-dark); }
.button-outline { border-color: rgba(255,255,255,.7); background: transparent; }
.button-outline:hover { background: var(--white); color: var(--ink); }

.trust-strip { position: relative; z-index: 2; margin-top: -42px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.trust-item { padding: 26px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid #e6e1d9; }
.trust-item strong { display: block; color: var(--red); font-size: 1.15rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.service-card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(20,30,35,.08); border-top: 4px solid var(--red); }
.service-card .num { color: var(--sand); font-weight: 900; font-size: 2rem; }
.service-card p { color: var(--muted); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li { position: relative; margin: 12px 0; padding-left: 30px; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 35px; }
.step { padding: 24px; color: var(--white); background: var(--slate); border-radius: 14px; }
.step b { display: block; color: var(--sand); font-size: 2rem; }

.wide-cta { width: 100%; padding: 74px 20px; color: var(--white); text-align: center; background: linear-gradient(120deg, var(--red-dark), var(--red)); }
.wide-cta h2 { max-width: 850px; margin-inline: auto; }
.wide-cta p { max-width: 760px; margin-inline: auto; font-size: 1.1rem; }
.wide-cta .button { border-color: var(--white); background: var(--white); color: var(--red-dark); }

.page-hero { padding: 95px 0; color: var(--white); background: linear-gradient(115deg, var(--ink), var(--slate)); }
.page-hero h1 { max-width: 900px; margin-bottom: 12px; font-size: clamp(2.7rem, 5vw, 5rem); }
.page-hero p { max-width: 720px; color: #d8e0e2; font-size: 1.15rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.value { padding: 28px; border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }

.masonry { columns: 3 300px; column-gap: 18px; margin-top: 30px; }
.gallery-item { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #ddd; cursor: zoom-in; break-inside: avoid; }
.gallery-item img { transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.lightbox { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 70px; background: rgba(6,10,12,.94); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; color: var(--white); background: rgba(255,255,255,.12); cursor: pointer; }
.lightbox-close { top: 20px; right: 22px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 52px; height: 70px; border-radius: 9px; font-size: 2.2rem; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.contact-card { padding: 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-card a { color: var(--red); font-size: 1.3rem; font-weight: 900; text-decoration: none; }
.contact-card ul { margin: 22px 0 0; padding-left: 20px; }
.contact-note { padding: 32px; border-radius: var(--radius); background: var(--slate); color: var(--white); }
.contact-note p { color: #dce3e5; }

.site-footer { padding: 48px 0 28px; background: #111a1e; color: #cbd3d6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
.site-footer h3 { color: var(--white); }
.site-footer a { color: #e7edef; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2e3a3f; font-size: .9rem; }
.floating-phone { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--red); color: var(--white); text-decoration: none; font-size: 1.7rem; box-shadow: 0 10px 30px rgba(181,45,37,.4); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(181,45,37,.45); } 50% { box-shadow: 0 0 0 14px rgba(181,45,37,0); } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 122px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 28px; background: var(--ink); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid #34434a; font-size: 1.15rem; }
  .nav .nav-phone { margin-top: 14px; text-align: center; }
  .hero { min-height: 650px; background-position: 63% center; }
  .services-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar span { display: none; }
  .nav-row { min-height: 72px; }
  .nav { inset-block-start: 112px; }
  .brand-logo { width: 150px; height: 54px; }
  .hero { min-height: 650px; background-position: 68% center; }
  .hero-content { padding: 62px 0; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .section { padding: 62px 0; }
  .trust-grid, .services-grid, .values, .process, .footer-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid #e6e1d9; }
  .actions .button { width: 100%; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; border-radius: 8px; }
  .lightbox { padding: 55px 12px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 58px; }
}
