:root {
  --bg:#f3f2ee;
  --surface:#fff;
  --ink:#171a1d;
  --muted:#686d70;
  --line:#d9d8d3;
  --dark:#161a1d;
  --accent:#d64b2a;
  --accent-dark:#ad351c;
  --accent-soft:#f5dfd8;
  --radius:18px;
  --shadow:0 18px 50px rgba(23,26,29,.1)
}


* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  padding-top:116px;
  font-family:'IBM Plex Sans', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased
}

a {
  color:inherit
}

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


.top-bar {
  position:fixed;
  inset:0 0 auto;
  z-index:1001;
  height:34px;
  color:#c7c9ca;
  background:#101315;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:12px
}

.top-container,
.top-bar-content {
  width:min(1180px,calc(100% - 40px));
  height:100%;
  margin:auto;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}


.header {
  position:fixed;
  inset:34px 0 auto;
  z-index:1000;
  height:82px;
  background:rgba(22,26,29,.97);
  border:0;
  box-shadow:0 8px 30px rgba(0,0,0,.18);
  backdrop-filter:blur(12px)
}

.header .container {
  width:min(1180px,calc(100% - 40px));
  height:100%;
  margin:auto;
  padding:0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:32px
}

.logo-text {
  width:fit-content;
  color:#fff;
  text-decoration:none;
  font-size:19px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.05
}

.logo-text span {
  color:var(--accent)
}

.logo-text:hover {
  color:#fff
}

.logo-sub {
  margin-top:6px;
  color:#9ea2a4;
  font-size:10px;
  font-weight:400;
  letter-spacing:.025em
}

.nav {
  display:flex;
  align-items:center;
  gap:4px
}

.nav a {
  margin:0;
  padding:10px 14px;
  color:#d9dbdc;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  border-radius:8px;
  transition:.2s
}

.nav a::after {
  display:none
}

.nav a:hover,
.nav a.active {
  color:#fff;
  background:rgba(255,255,255,.08)
}

.contact {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:15px
}

.phone {
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  white-space:nowrap
}

.phone:hover {
  color:#fff;
  text-shadow:none
}


.call-btn,
.hero-btn,
.category-btn,
.product-btn,
.cta-btn,
.form-btn,
.modal-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  color:#fff;
  background:var(--accent);
  border:1px solid var(--accent);
  border-radius:10px;
  text-decoration:none;
  font:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.2s
}

.call-btn {
  min-height:40px;
  padding:0 18px
}

.call-btn:hover,
.hero-btn:hover,
.category-btn:hover,
.product-btn:hover,
.cta-btn:hover,
.form-btn:hover,
.modal-btn:hover {
  color:#fff;
  background:var(--accent-dark);
  border-color:var(--accent-dark);
  box-shadow:0 10px 24px rgba(214,75,42,.25);
  transform:translateY(-2px)
}


.hero {
  position:relative;
  min-height:650px;
  height:calc(100vh - 116px);
  max-height:820px;
  overflow:hidden;
  background:var(--dark)
}

.hero::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(12,15,17,.92),rgba(12,15,17,.7) 48%,rgba(12,15,17,.22)),
  linear-gradient(0deg,rgba(12,15,17,.5),transparent 45%)
}

.slider,
.slide {
  position:absolute;
  inset:0
}

.slide {
  opacity:0;
  background-size:cover;
  background-position:center;
  transition:opacity 1s
}

.slide.active {
  opacity:1
}

.hero-content {
  position:relative;
  z-index:2;
  width:min(1180px,calc(100% - 40px));
  max-width:none;
  height:100%;
  margin:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  text-align:left
}

.hero-content::before {
  content:'МЕТАЛЛ • КРОВЛЯ • ДОСТАВКА';
  margin-bottom:22px;
  color:#ff9b82;
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em
}

.hero h1 {
  max-width:790px;
  margin:0 0 24px;
  color:#fff;
  font-size:clamp(42px,5.2vw,72px);
  font-weight:700;
  line-height:1.06;
  letter-spacing:-.045em;
  text-transform:none;
  text-shadow:0 8px 30px rgba(0,0,0,.28)
}

.hero h1::after {
  display:none
}

.hero p {
  max-width:590px;
  margin:0 0 34px;
  color:#d8dadb;
  font-size:18px;
  line-height:1.7
}

.hero-btn {
  min-height:52px;
  padding:0 28px;
  border-radius:12px
}

.dots {
  position:absolute;
  z-index:3;
  right:max(20px,calc((100% - 1180px)/2));
  bottom:32px;
  width:auto;
  display:flex;
  gap:8px
}

.dot {
  width:26px;
  height:4px;
  margin:0;
  background:rgba(255,255,255,.35);
  border-radius:10px;
  cursor:pointer;
  transition:.2s
}

.dot.active {
  width:48px;
  background:var(--accent)
}


.categories,
.about,
.products,
.roof {
  padding:100px 20px
}

.categories {
  background:var(--bg);
  text-align:left
}

.about {
  background:#e8e7e2;
  text-align:left
}

.products,
.roof {
  background:var(--bg)
}

.categories>h2,
.about h2 {
  width:min(1180px,100%);
  margin:0 auto 40px;
  font-size:clamp(30px,4vw,46px);
  line-height:1.15;
  letter-spacing:-.035em
}

.categories>h2::before,
.about h2::before {
  content:'';
  display:inline-block;
  width:32px;
  height:4px;
  margin:0 14px 8px 0;
  background:var(--accent)
}

.categories-container {
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px
}

.category-card {
  position:relative;
  width:auto;
  height:390px;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  cursor:default;
  transition:.3s
}

.category-card img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s
}

.category-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(0deg,rgba(12,15,17,.88),rgba(12,15,17,.08) 72%)
}

.category-content {
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  padding:32px;
  transform:none;
  text-align:left
}

.category-content h3 {
  margin:0 0 6px;
  color:#fff;
  font-size:27px
}

.category-content p {
  max-width:340px;
  margin:0 0 22px;
  color:#c8cbcc
}

.category-btn {
  background:#fff;
  border-color:#fff;
  color:var(--ink)
}

.category-btn:hover {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff
}

.category-card:hover {
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(23,26,29,.16)
}

.category-card:hover img {
  transform:scale(1.04)
}


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

.about h2 {
  width:auto
}

.about-text {
  max-width:760px;
  margin:0 0 48px;
  color:#4e5457;
  font-size:18px;
  line-height:1.8
}

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

.adv-card {
  min-width:0;
  padding:30px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(23,26,29,.1);
  border-radius:14px;
  transition:.2s
}

.adv-card::before {
  content:'';
  display:block;
  width:38px;
  height:4px;
  margin-bottom:26px;
  background:var(--accent)
}

.adv-card:hover {
  transform:translateY(-3px);
  border-color:rgba(214,75,42,.45);
  box-shadow:none
}

.adv-card h3 {
  margin:0 0 8px;
  font-size:19px
}

.adv-card p {
  margin:0;
  color:var(--muted);
  font-size:14px
}


.page-banner {
  height:340px;
  padding:40px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(90deg,rgba(15,18,20,.92),rgba(15,18,20,.58)),
  url('../images/metal-bg.jpg') center/cover no-repeat
}

.banner-content {
  width:min(900px,100%)
}

.banner-content::before {
  content:'ОЗЁРЫ МЕТАЛЛ';
  color:#ff9b82;
  font-size:11px;
  font-weight:700;
  letter-spacing:.2em
}

.banner-content h1 {
  margin:14px 0 10px;
  color:#fff;
  font-size:clamp(42px,6vw,68px);
  line-height:1.05;
  letter-spacing:-.045em
}

.banner-content p {
  margin:0;
  color:#d3d5d6;
  font-size:17px
}


.cta-block {
  position:relative;
  width:min(1040px,calc(100% - 40px));
  max-width:none;
  margin:64px auto;
  padding:48px 50px;
  overflow:hidden;
  color:#fff;
  text-align:left;
  background:var(--dark);
  border:0;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  opacity:1;
  transform:none;
  transition:.25s
}

.cta-block.show {
  opacity:1;
  transform:none
}

.cta-block:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow)
}

.cta-glow {
  position:absolute;
  inset:auto -80px -150px auto;
  width:340px;
  height:340px;
  background:radial-gradient(circle,rgba(214,75,42,.35),transparent 65%);
  filter:none;
  opacity:1
}

.cta-block h2 {
  position:relative;
  margin:0 0 10px;
  max-width:720px;
  font-size:clamp(26px,3.5vw,38px);
  line-height:1.2;
  letter-spacing:-.03em
}

.cta-block p {
  position:relative;
  max-width:660px;
  margin:0 0 28px;
  color:#bfc3c5;
  font-size:15px
}

.cta-actions {
  position:relative;
  display:flex;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap
}

.cta-phone {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
  border-radius:10px;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:.2s
}

.cta-phone:hover {
  color:#fff;
  border-color:#fff;
  background:rgba(255,255,255,.08);
  box-shadow:none
}


.products {
  padding-top:20px
}

.products-container {
  width:min(1180px,100%);
  max-width:none;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px
}

.group-title {
  width:min(1180px,100%);
  margin:76px auto 28px;
  text-align:left;
  color:var(--ink);
  font-size:clamp(25px,3vw,34px);
  line-height:1.2;
  letter-spacing:-.025em
}

.group-title::after {
  content:'';
  display:block;
  width:100%;
  height:1px;
  margin:18px 0 0;
  background:var(--line)
}

.product-card {
  width:auto;
  padding:0 0 24px;
  overflow:hidden;
  text-align:left;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  transition:.25s
}

.product-card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow)
}

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

.product-card h3 {
  margin:22px 20px 7px;
  color:var(--ink);
  font-size:17px;
  line-height:1.3
}

.product-card p {
  min-height:44px;
  margin:0;
  padding:0 20px;
  color:var(--muted);
  font-size:13px
}

.product-btn {
  margin:18px 20px 0;
  min-height:40px;
  padding:0 17px;
  background:transparent;
  border-color:#bdc0c1;
  color:var(--ink)
}

.product-btn:hover {
  color:#fff
}


.roof {
  padding-top:16px
}

.container-roof {
  width:min(1180px,100%);
  max-width:none;
  margin:auto
}

.roof-cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:44px
}

.roof-card {
  width:auto;
  min-height:190px;
  padding:26px;
  text-align:left;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  transition:.2s
}

.roof-card:hover {
  transform:translateY(-3px);
  border-color:rgba(214,75,42,.55);
  box-shadow:none
}

.roof-card-icon {
  width:42px;
  height:42px;
  margin:0 0 20px;
  display:grid;
  place-items:center;
  background:var(--accent-soft);
  border-radius:10px;
  font-size:20px
}

.roof-card h3 {
  margin:0 0 9px;
  color:var(--ink);
  font-size:17px
}

.roof-card p {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.75
}

.section-note {
  margin:-22px 0 48px;
  padding:18px 22px;
  color:#5d504d;
  background:var(--accent-soft);
  border-radius:10px;
  text-align:left;
  font-size:13px;
  font-style:normal
}


.footer {
  margin:0;
  padding:64px 20px 24px;
  color:#fff;
  background:#101315;
  border:0
}

.footer-container {
  width:min(1180px,100%);
  max-width:none;
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 1.2fr .6fr;
  gap:60px
}

.footer-block h3 {
  margin:0 0 18px;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase
}

.footer-block p,
.footer-block a {
  margin:0 0 10px;
  color:#aeb2b4;
  font-size:13px;
  line-height:1.7;
  text-decoration:none
}

.footer-block a {
  display:block
}

.footer-block a:hover {
  color:#fff
}

.footer-bottom {
  width:min(1180px,100%);
  margin:38px auto 0;
  padding-top:22px;
  color:#74797c;
  border-top:1px solid rgba(255,255,255,.09);
  text-align:left;
  font-size:12px
}


.modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  padding:20px;
  align-items:center;
  justify-content:center;
  background:rgba(12,15,17,.78);
  backdrop-filter:blur(7px)
}

.modal-content {
  position:relative;
  width:min(820px,100%);
  max-height:calc(100vh - 40px);
  overflow-y:auto;
  padding:34px;
  color:var(--ink);
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:0 30px 90px rgba(0,0,0,.28)
}

.close,
.form-close {
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  color:#596064;
  background:#eeefed;
  border-radius:50%;
  font-size:25px;
  line-height:1;
  cursor:pointer
}

.close:hover,
.form-close:hover {
  color:#fff;
  background:var(--accent);
  box-shadow:none
}

.modal-body {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:34px;
  align-items:center
}

.modal-left {
  text-align:left
}

.modal-left img {
  width:100%!important;
  max-width:none;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px;
  pointer-events:none
}

.modal-btn {
  margin-top:18px
}

.modal-right h2,
#modalTitle {
  margin:0 36px 12px 0;
  font-size:28px;
  line-height:1.2
}

.product-info {
  margin-top:0
}

#modalDescription {
  color:#444b4f;
  font-size:15px;
  line-height:1.75
}

.product-note {
  margin-top:20px;
  padding:14px 16px;
  color:#62524e;
  background:var(--accent-soft);
  border:0;
  border-radius:9px;
  font-size:13px
}

.form-modal {
  width:min(460px,100%);
  padding:36px;
  text-align:left
}

.form-modal h2 {
  margin:0 0 7px;
  text-align:left;
  font-size:28px
}

.form-subtitle {
  margin:0 0 24px;
  color:var(--muted);
  font-size:13px
}

.form-modal form {
  margin:0
}

.form-modal input,
.form-modal textarea {
  width:100%;
  margin:0 0 12px;
  padding:13px 14px;
  color:var(--ink);
  background:#f3f3f0;
  border:1px solid #d9dad7;
  border-radius:9px;
  outline:none;
  font:inherit;
  font-size:14px
}

.form-modal input:focus,
.form-modal textarea:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(214,75,42,.12)
}

.form-modal textarea {
  height:100px;
  resize:vertical
}

.form-btn {
  width:100%;
  border:0
}

.turnstile-widget {
  min-height: 65px;
  margin: 2px 0 12px;
  display: flex;
  justify-content: center;
}

.captcha-error {
  min-height: 18px;
  margin: -4px 0 10px;
  color: #b7351d;
  font-size: 12px;
  text-align: center;
}

.success-message {
  position:fixed;
  top:136px;
  right:24px;
  z-index:10000;
  max-width:calc(100% - 48px);
  padding:15px 18px;
  color:#fff;
  background:#1e6a45;
  border:0;
  border-radius:10px;
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(-16px);
  pointer-events:none;
  transition:.25s
}

.success-message.show {
  opacity:1;
  transform:translateY(0)
}


@media(max-width:960px) {
  body {
    padding-top:82px
  }

  .top-bar {
    display:none
  }

  .header {
    top:0
  }

  .header .container {
    width:min(100% - 28px,1180px);
    grid-template-columns:1fr auto;
    gap:16px
  }

  .nav {
    display:none
  }

  .phone {
    display:none
  }

  .hero {
    height:calc(100vh - 82px);
    min-height:570px
  }

  .hero-content {
    width:min(100% - 40px,1180px)
  }

  .categories-container {
    grid-template-columns:1fr
  }

  .category-card {
    height:360px
  }

  .products-container {
    grid-template-columns:repeat(2,1fr)
  }

  .roof-cards {
    grid-template-columns:repeat(2,1fr)
  }

  .footer-container {
    grid-template-columns:1fr 1fr
  }
}


@media(max-width:620px) {
  body {
    padding-top:72px
  }

  .header {
    height:72px
  }

  .header .container {
    width:calc(100% - 24px)
  }

  .logo-text {
    font-size:16px
  }

  .logo-sub {
    display:none
  }

  .call-btn {
    min-height:38px;
    padding:0 14px;
    font-size:12px
  }

  .hero {
    min-height:560px;
    height:calc(100svh - 72px)
  }

  .hero::after {
    background:linear-gradient(90deg,rgba(12,15,17,.9),rgba(12,15,17,.48))
  }

  .hero-content {
    width:calc(100% - 34px);
    justify-content:flex-end;
    padding-bottom:100px
  }

  .hero-content::before {
    margin-bottom:16px;
    font-size:10px
  }

  .hero h1 {
    font-size:40px
  }

  .hero p {
    margin-bottom:25px;
    font-size:15px
  }

  .dots {
    right:17px;
    bottom:28px
  }

  .categories,
  .about,
  .products,
  .roof {
    padding:68px 16px
  }

  .categories>h2,
  .about h2 {
    margin-bottom:28px;
    font-size:32px
  }

  .categories>h2::before,
  .about h2::before {
    width:24px;
    margin-right:10px
  }

  .category-card {
    height:330px
  }

  .category-content {
    padding:24px
  }

  .advantages,
  .products-container,
  .roof-cards {
    grid-template-columns:1fr
  }

  .product-card img {
    height:220px
  }

  .page-banner {
    height:290px
  }

  .banner-content h1 {
    font-size:42px
  }

  .banner-content p {
    font-size:14px
  }

  .cta-block {
    width:calc(100% - 32px);
    margin:42px auto;
    padding:34px 24px
  }

  .cta-actions {
    flex-direction:column
  }

  .cta-btn,
  .cta-phone {
    width:100%
  }

  .products,
  .roof {
    padding-top:4px
  }

  .group-title {
    margin-top:56px
  }

  .roof-card {
    min-height:0
  }

  .footer {
    padding-top:48px
  }

  .footer-container {
    grid-template-columns:1fr;
    gap:30px
  }

  .footer-bottom {
    margin-top:26px
  }

  .modal-body {
    grid-template-columns:1fr
  }

  .modal-content {
    padding:24px
  }

  .modal-left img {
    max-height:230px
  }

  .form-modal {
    padding:28px 22px
  }
}


@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior:auto!important;
    transition-duration:.01ms!important
  }
}

/* Спокойная индустриальная фактура без тяжёлых фоновых изображений */
.categories,
.products,
.roof {
  background-color: #f1f0eb;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(214, 75, 42, .08), transparent 24rem),
    linear-gradient(rgba(23, 26, 29, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 29, .035) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.about {
  background-color: #deddd7;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, .55), transparent 45%),
    repeating-linear-gradient(135deg, rgba(23, 26, 29, .025) 0 1px, transparent 1px 8px);
}

.hero h1,
.banner-content h1,
.categories > h2,
.about h2,
.group-title,
.cta-block h2,
.product-card h3,
.roof-card h3 {
  font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', Arial, sans-serif;
}

.hero h1,
.banner-content h1 {
  letter-spacing: -.025em;
}

.product-card,
.roof-card,
.adv-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 34px rgba(23, 26, 29, .055);
}
