:root {
  --bg: #121212;
  --bg-soft: #f5f2ec;
  --card: #ffffff;
  --text: #191919;
  --muted: #666;
  --line: rgba(0,0,0,.08);

  --red: #d71920;
  --red-deep: #b31217;

  --gold: #d71920;
  --gold-deep: #b31217;

  --green: #5f7d2b;
  --header: #0d0d0f;
  --shadow: 0 18px 50px rgba(0,0,0,.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }

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

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-heading { max-width: 860px; margin-bottom: 34px; }
.section-heading.centered { text-align: center; margin-inline: auto; margin-bottom: 38px; }

.section-heading h2,
.category-hero h2,
.contact-copy h2,
.showroom-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.08;
}

.section-heading p,
.category-hero p,
.contact-copy p,
.info-copy p,
.showroom-copy p {
  color: var(--muted);
  line-height: 1.8;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(13,13,15,.98), rgba(13,13,15,.94));
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

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

.logo img { width: 178px; }

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

.main-nav a {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 29px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

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

.header-phone {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* BUTTONS */

.header-cta,
.btn,
.btn-primary,
.gold-btn,
.catalog-btn,
.submit-btn,
.contact-submit,
button[type="submit"] {
  border-radius: 0;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  cursor: pointer;
}

.header-cta:hover,
.btn:hover,
.btn-primary:hover,
.gold-btn:hover,
.catalog-btn:hover,
.submit-btn:hover,
.contact-submit:hover,
button[type="submit"]:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-secondary-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
}

.btn-secondary:hover,
.btn-secondary-dark:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 7px 0;
}

/* HERO */

.hero {
  position: relative;
  min-height: 86vh;
  background: #111;
  overflow: hidden;
}

.hero-slider,
.hero-slide {
  min-height: 86vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.56) 40%, rgba(0,0,0,.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  color: #fff;
  padding-top: 70px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  margin: 0 0 18px;
}

.hero-copy p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgba(255,255,255,.84);
  margin: 0 0 28px;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.26);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: var(--red);
  width: 28px;
}

/* GRIDS */

.quick-grid,
.cards-grid {
  display: grid;
  gap: 22px;
}

.quick-grid {
  grid-template-columns: repeat(6, 1fr);
}

.quick-card {
  background: linear-gradient(180deg, #191919, #111);
  color: #fff;
  min-height: 118px;
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.quick-card span {
  font-weight: 700;
  font-size: 1.04rem;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,25,32,.7);
}

/* CATEGORY */

.category-hero {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr;
  gap: 0;
  background: #101012;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.text-block {
  padding: 58px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-block p {
  color: rgba(255,255,255,.78);
}

.image-block img {
  height: 100%;
  object-fit: cover;
  min-height: 440px;
}

.actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cards-grid.four {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
}

.cards-grid.three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}

.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card img {
  height: 220px;
  object-fit: cover;
}

.catalog-card > div {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.catalog-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.link-btn {
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 13px;
}

.link-btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

/* FEATURES */

.features-bar {
  margin-top: 26px;
  background: linear-gradient(90deg, #111, #1a1a1d);
  color: #f1ede4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
}

.features-bar.gold {
  grid-template-columns: repeat(5, 1fr);
}

.features-bar.green {
  grid-template-columns: repeat(4, 1fr);
}

.features-bar > div {
  padding: 20px 18px;
  text-align: center;
  font-weight: 700;
  font-size: .97rem;
}

.features-bar > div:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.08);
}

/* INFO */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  align-items: center;
  margin-top: 42px;
}

.info-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.info-copy ul,
.contact-copy ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.info-image img,
.showroom-image img {
  box-shadow: var(--shadow);
}

/* SHOWROOM */

.showroom-strip {
  background: linear-gradient(90deg, #141416, #1b1b20);
  color: #fff;
  padding: 76px 0;
}

.showroom-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.showroom-copy p {
  color: rgba(255,255,255,.78);
}

/* CONTACT STRIP */

.contact-strip {
  background: #f7f3ec;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.contact-strip-grid article {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.contact-strip-grid article:last-child {
  border-right: 0;
}

.contact-strip-grid h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.contact-strip-grid p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

/* CONTACT FORM */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-form {
  background: #111;
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 22px;
  font-size: 1.8rem;
}

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

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: #1c1c1f;
  color: #fff;
  font: inherit;
}

.submit-btn {
  border: 0;
  cursor: pointer;
}

.form-note {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  line-height: 1.7;
}

.form-success {
  display: none;
  color: #d8f0b7;
  font-weight: 700;
}

.contact-form.sent .form-success {
  display: block;
}

/* FOOTER */

.site-footer {
  background: #0d0d0f;
  color: rgba(255,255,255,.72);
  padding: 18px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

/* ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* CATALOGS PAGE */

.catalogs-hero {
  min-height: 520px;
  padding: 140px 8% 80px;
  background:
    linear-gradient(90deg, rgba(10,10,10,.86), rgba(10,10,10,.45)),
    url("../assets/cat-doors.jpg") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.catalogs-hero-content {
  max-width: 720px;
}

.catalogs-hero h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: .95;
  margin-bottom: 24px;
}

.catalogs-hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

.gold-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 28px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
}

.catalogs-section {
  padding: 80px 8%;
  background: #f4f1eb;
}

.catalogs-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 45px;
  text-transform: uppercase;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.catalog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.catalog-cover {
  height: 230px;
  background-size: cover;
  background-position: center;
}

.cover-main {
  background-image: url("../assets/cat-fences-main.jpg");
}

.cover-deco {
  background-image: url("../assets/cat-materials.jpg");
}

.cover-containers {
  background-image: url("../assets/cat-systems.jpg");
}

.cover-doors {
  background-image: url("../assets/cat-doors.jpg");
}

.cover-security {
  background-image: url("../assets/cat-fences-alt.jpg");
}

.catalog-info {
  padding: 24px;
}

.catalog-info h3 {
  font-size: 21px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.catalog-info p {
  color: #555;
  line-height: 1.55;
  margin-bottom: 22px;
}

.catalog-info a {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.catalog-info a:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.catalog-cta {
  padding: 70px 8%;
  background: #111;
  color: #fff;
  text-align: center;
}

.catalog-cta h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.catalog-cta p {
  color: rgba(255,255,255,.75);
  font-size: 18px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1180px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .features-bar,
  .features-bar.gold,
  .features-bar.green {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #101013;
    border-top: 1px solid rgba(255,255,255,.06);
    display: none;
    flex-direction: column;
    padding: 18px 24px 28px;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav a::after {
    bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .header-phone,
  .header-cta {
    display: none;
  }

  .hero,
  .hero-slider,
  .hero-slide,
  .hero-inner {
    min-height: 78vh;
  }

  .hero-copy {
    padding-top: 88px;
  }

  .category-hero,
  .info-grid,
  .showroom-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .text-block {
    padding: 42px 28px;
  }
}

@media (max-width: 760px) {
  .catalogs-hero {
    padding: 120px 24px 60px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

  .quick-grid,
  .cards-grid.four,
  .cards-grid.three,
  .contact-strip-grid,
  .form-row,
  .features-bar,
  .features-bar.gold,
  .features-bar.green {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-arrow {
    display: none;
  }

  .footer-wrap {
    flex-direction: column;
  }
}