:root {
  --ink: #16181d;
  --muted: #657080;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --line: #dde3ec;
  --brand: #a31535;
  --brand-dark: #771229;
  --steel: #2d596f;
  --mint: #0f8a78;
  --gold: #c69428;
  --shadow: 0 22px 70px rgba(22, 24, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 227, 236, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: auto;
  max-height: 64px;
}

.site-footer img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #323844;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--brand);
  background: #f7eaf0;
}

.main-nav .login-link {
  color: #fff;
  background: var(--brand);
}

.main-nav .login-link:hover {
  color: #fff;
  background: var(--brand-dark);
}

.nav-toggle,
.nav-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 720px;
  padding: 160px clamp(18px, 6vw, 86px) 42px;
  overflow: hidden;
  color: #fff;
  background: #15171b;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.92) 0%, rgba(21, 24, 30, 0.74) 45%, rgba(21, 24, 30, 0.18) 100%),
    url("../img/bg.jpg") center/cover no-repeat;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  line-height: 0.9;
  font-weight: 800;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

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

.primary-action,
.secondary-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 40px rgba(163, 21, 53, 0.35);
}

.primary-action:hover {
  background: #c21b42;
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 72px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.section {
  padding: 96px clamp(18px, 6vw, 86px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
  margin-left: 0;
}

.section h2,
.quality-copy h2,
.cert-content h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid article,
.offer-list div {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(45, 89, 111, 0.08);
}

.intro-grid i {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 6px;
  background: var(--steel);
}

.intro-grid article:nth-child(2) i {
  background: var(--brand);
}

.intro-grid article:nth-child(3) i {
  background: var(--mint);
}

.intro-grid h3,
.offer-list h3 {
  margin: 22px 0 10px;
  font-size: 1.2rem;
}

.intro-grid p,
.offer-list p,
.quality-copy p,
.cert-content p {
  margin: 0;
  color: var(--muted);
}

.quality-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: 96px clamp(18px, 6vw, 86px);
  background: var(--soft);
}

.quality-copy {
  max-width: 620px;
}

.quality-copy p:not(.eyebrow) {
  margin-top: 22px;
  font-size: 1.08rem;
}

.text-link {
  justify-content: flex-start;
  width: fit-content;
  margin-top: 30px;
  padding-left: 0;
  color: var(--brand);
}

.quality-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quality-images img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.offer {
  background: #fff;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.offer-list span {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
}

.certificates {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 96px clamp(18px, 6vw, 86px);
  color: #fff;
  background: linear-gradient(135deg, #16181d 0%, #223d4a 100%);
}

.cert-content {
  max-width: 580px;
}

.cert-content p:not(.eyebrow) {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
}

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

.cert-grid a {
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.cert-grid a:hover {
  transform: translateY(-4px);
}

.cert-grid img {
  max-height: 164px;
  object-fit: contain;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  padding: 96px clamp(18px, 6vw, 86px);
  background: #fdfefe;
}

address {
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.contact-actions a,
.contact-actions span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(22, 24, 29, 0.06);
}

.contact-actions i {
  color: var(--brand);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(18px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.78);
  background: #15171b;
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer img {
  width: 92px;
  background: #fff;
  border-radius: 4px;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 920px) {
  .nav-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .nav-button span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .main-nav {
    position: absolute;
    top: 84px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .hero {
    min-height: 680px;
    padding-top: 132px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(12, 14, 18, 0.93) 0%, rgba(21, 24, 30, 0.8) 58%, rgba(21, 24, 30, 0.38) 100%),
      url("../img/bg.jpg") center/cover no-repeat;
  }

  .section-heading,
  .quality-band,
  .certificates,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .offer-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 76px;
  }

  .brand {
    width: auto;
  }

  .brand img {
    max-height: 58px;
  }

  .main-nav {
    top: 76px;
  }

  .hero {
    min-height: 720px;
    padding-top: 112px;
  }

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

  .hero-panel div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .quality-images,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .quality-band,
  .certificates,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
