:root {
  --color-text: #141923;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f7f9;
  --color-bg-accent: #fff3f4;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-dark: #14171d;
  --color-dark-soft: #2a313d;
  --color-white: #ffffff;
  --color-accent: #e31b23;
  --color-accent-dark: #b51219;
  --color-accent-soft: #ffe6e8;
  --color-focus: #e31b23;

  --shadow-sm: 0 10px 30px rgba(20, 23, 29, 0.06);
  --shadow-md: 0 18px 44px rgba(20, 23, 29, 0.1);
  --shadow-lg: 0 26px 60px rgba(20, 23, 29, 0.12);

  --radius-sm: 16px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 18px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 64px;
  --space-12: 80px;

  --container-width: 1200px;
  --header-height: 86px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

input,
textarea,
button {
  min-width: 0;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-dark);
}

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

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(20, 23, 29, 0.08);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 27, 35, 0.4), transparent);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
  padding: var(--space-3) 0;
}

.logo-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  max-height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-subtitle {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.logo-block:hover .logo-subtitle {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.main-nav > a,
.dropdown-toggle {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark-soft);
  transition: color 0.2s ease;
}

.main-nav > a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav > a:hover,
.dropdown-toggle:hover,
.main-nav > a.active-link,
.dropdown-toggle.active-link {
  color: var(--color-text);
}

.main-nav > a:hover::after,
.dropdown-toggle:hover::after,
.main-nav > a.active-link::after,
.dropdown-toggle.active-link::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #c84a4f, #aa2f35);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(170, 47, 53, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(170, 47, 53, 0.2);
}

.header-cta-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.header-cta span {
  display: inline-block;
  line-height: 1;
}

/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.dropdown-toggle span[aria-hidden="true"] {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle span[aria-hidden="true"],
.dropdown:focus-within .dropdown-toggle span[aria-hidden="true"] {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  min-width: 320px;
  padding: 12px;
  display: none;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 23, 29, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--color-white);
  border-left: 1px solid rgba(20, 23, 29, 0.08);
  border-top: 1px solid rgba(20, 23, 29, 0.08);
  transform: rotate(45deg);
}

.dropdown-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark-soft);
  border-radius: 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active-link {
  background: var(--color-bg-accent);
  color: var(--color-accent-dark);
  transform: translateX(2px);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 88px) 0 clamp(50px, 7vw, 76px);
  background:
    radial-gradient(circle at top left, rgba(227, 27, 35, 0.1), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(20, 23, 29, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 23, 29, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 23, 29, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.hero-left,
.hero-right {
  min-width: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 10px 16px;
  border: 1px solid rgba(227, 27, 35, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-dark-soft);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(20, 23, 29, 0.04);
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
  max-width: 12ch;
}

.hero-text {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  color: var(--color-text-soft);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-dark {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-white);
  box-shadow: 0 16px 32px rgba(227, 27, 35, 0.18);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border-color: rgba(20, 23, 29, 0.12);
  box-shadow: 0 10px 24px rgba(20, 23, 29, 0.05);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark:hover {
  box-shadow: 0 18px 36px rgba(227, 27, 35, 0.24);
}

.btn-light:hover {
  color: var(--color-accent-dark);
  border-color: rgba(227, 27, 35, 0.24);
  background: var(--color-white);
}

/* =========================
   CARDS / PANELS
========================= */

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

.highlight-card,
.service-card,
.check-card,
.contact-card,
.form-box,
.info-panel,
.info-box,
.dark-card {
  position: relative;
  border-radius: var(--radius-lg);
}

.highlight-card,
.service-card,
.check-card,
.contact-card,
.form-box,
.info-panel,
.info-box {
  border: 1px solid rgba(20, 23, 29, 0.08);
}

.highlight-card,
.service-card,
.contact-card,
.form-box,
.info-panel {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.highlight-card,
.service-card,
.check-card,
.contact-card,
.info-panel,
.info-box,
.dark-card,
.form-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.highlight-card:hover,
.service-card:hover,
.contact-card:hover,
.form-box:hover,
.info-panel:hover,
.info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(227, 27, 35, 0.16);
}

.highlight-card::before,
.service-card::before,
.contact-card::before,
.form-box::before,
.info-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--color-accent), rgba(227, 27, 35, 0.18));
}

.highlight-card {
  padding: 24px;
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.highlight-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-soft);
}

.info-panel {
  padding: 28px;
}

.section-mini-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-mini-title.light {
  color: rgba(255, 255, 255, 0.74);
}

.info-box {
  margin-top: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #fafafb 0%, #f4f5f7 100%);
}

.info-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-box p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-soft);
}

.dark-box {
  background: linear-gradient(135deg, #171b21 0%, #252c36 100%);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-box p {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: clamp(68px, 9vw, 96px) 0;
}

.light-section {
  background:
    radial-gradient(circle at top right, rgba(227, 27, 35, 0.05), transparent 22%),
    var(--color-bg-soft);
}

.dark-section {
  background:
    radial-gradient(circle at top right, rgba(227, 27, 35, 0.22), transparent 22%),
    linear-gradient(135deg, #16191f 0%, #242b35 100%);
  color: var(--color-white);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: inherit;
  opacity: 0.86;
}

/* =========================
   GRIDS
========================= */

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

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

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}

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

/* =========================
   SERVICE CARDS
========================= */

.service-card {
  padding: 28px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--color-text-soft);
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 800;
  color: var(--color-accent-dark);
}

.service-card a::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.2s ease;
}

.service-card:hover a::after {
  transform: translateX(3px);
}

/* =========================
   DARK CARDS
========================= */

.dark-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.dark-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.dark-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.dark-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   CHECK CARDS
========================= */

.check-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  font-weight: 700;
  color: var(--color-dark-soft);
  box-shadow: 0 8px 22px rgba(20, 23, 29, 0.04);
}

.check-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 23, 29, 0.07);
  border-color: rgba(227, 27, 35, 0.14);
}

/* =========================
   CONTACT
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 24px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--color-text-soft);
}

.contact-card a:hover {
  color: var(--color-accent-dark);
}

.form-box {
  padding: 30px;
}

.form-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.form-box p {
  margin: 0 0 24px;
  color: var(--color-text-soft);
}

.form-box form {
  display: grid;
  gap: 14px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(20, 23, 29, 0.14);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-box textarea {
  min-height: 140px;
  resize: vertical;
}

.form-box button {
  border: none;
  cursor: pointer;
}

.cta-box-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.cta-box-buttons .btn {
  text-align: center;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  padding: 34px 0 30px;
  background: linear-gradient(135deg, #14171d 0%, #232a34 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(227, 27, 35, 0.12), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  font-size: 14px;
}

.footer-brand,
.footer-contact,
.footer-area {
  padding: 10px 0;
}

.footer-brand__logo {
  max-width: 180px;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-contact p,
.footer-area p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact,
.footer-area {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-contact h4,
.footer-area h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact a:hover {
  color: #ffffff;
}

/* =========================
   ACTIVE LINKS
========================= */

.main-nav a.active-link,
.dropdown-menu a.active-link {
  color: var(--color-text);
  font-weight: 800;
}

/* =========================
   FOCUS
========================= */

.form-box input:focus,
.form-box textarea:focus,
.dropdown-toggle:focus-visible,
.mobile-menu-toggle:focus-visible,
.btn:focus-visible,
.main-nav a:focus-visible,
.dropdown-menu a:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.form-box input:focus,
.form-box textarea:focus {
  border-color: rgba(227, 27, 35, 0.4);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.08);
}

/* =========================
   LARGE TABLET
========================= */

@media (max-width: 1100px) {
  .hero-grid,
  .two-columns,
  .contact-grid,
  .three-columns,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-highlights,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.15rem, 6vw, 3rem);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 820px) {
  .container {
    width: min(var(--container-width), calc(100% - 24px));
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 12px;
  }

  .logo-block {
    gap: 10px;
  }

  .logo-subtitle {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .logo-image {
    max-height: 50px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 4%;
    width: 92%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(20, 23, 29, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }

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

  .main-nav > a,
  .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border-radius: 16px;
  }

  .main-nav > a::after,
  .dropdown-toggle::after,
  .dropdown-menu::before {
    display: none;
  }

  .main-nav > a:hover,
  .dropdown-toggle:hover,
  .main-nav > a.active-link,
  .dropdown-toggle.active-link {
    background: var(--color-bg-accent);
  }

  .dropdown {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .dropdown-menu {
    position: static;
    display: block;
    min-width: auto;
    margin: 0;
    padding: 6px 0 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .dropdown-menu a {
    padding: 12px 16px 12px 24px;
    background: var(--color-bg-soft);
    margin-top: 8px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero::before {
    opacity: 0.45;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .cta-box-buttons .btn {
    width: 100%;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tags span {
    padding: 8px 12px;
    font-size: 13px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 7vw, 2.15rem);
  }

  .section-heading p:last-child {
    font-size: 16px;
  }

  .highlight-card,
  .service-card,
  .check-card,
  .contact-card,
  .form-box,
  .info-panel,
  .info-box,
  .dark-card {
    border-radius: 20px;
  }

  .service-card,
  .dark-card,
  .check-card,
  .contact-card,
  .highlight-card,
  .form-box,
  .info-panel,
  .info-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-box input,
  .form-box textarea {
    font-size: 16px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .logo-image {
    max-height: 42px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero h1 {
    margin-top: 22px;
  }

  .btn {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 14px;
  }
}
