:root {
  --wine: #5f0008;
  --wine-dark: #360004;
  --wine-mid: #7a000a;
  --red: #b30912;
  --red-bright: #e10d00;
  --ink: #101010;
  --muted: #555;
  --soft: #f6f4f4;
  --line: #e4dddd;
  --white: #fff;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(54, 0, 4, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

p,
li {
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-text p,
.section p,
.service-main p,
.legal-content p,
.download-card p,
.service-card p,
.fact p,
.section-cards p,
.contact-box p {
  text-align: justify;
}

a {
  color: var(--wine-mid);
}

a:hover,
a:focus-visible {
  color: var(--red);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 900px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  background: var(--white);
  color: var(--wine);
  padding: .7rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(54, 0, 4, .18);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 7px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.brand img {
  display: block;
  width: 170px;
  height: auto;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link,
.submenu-link {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.nav-link {
  padding: .72rem .9rem;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
}

.has-submenu > .nav-link::after {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.18em) rotate(45deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 310px;
  display: grid;
  gap: 3px;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(95, 0, 8, .14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-link {
  color: var(--ink);
  padding: .72rem .8rem;
  border-radius: 12px;
  font-size: .95rem;
}

.submenu-link:hover,
.submenu-link:focus-visible,
.submenu-link.is-active {
  background: var(--soft);
  color: var(--wine-mid);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 800;
}

.hero {
  padding: 72px 0 62px;
  background:
    radial-gradient(circle at 80% 16%, rgba(122, 0, 10, .10), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff 52%, #f4eeee 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 54px;
}

.hero-copy h1,
.page-head h1 {
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: .15em 0 .35em;
}

.hero-copy .lead,
.page-head .lead,
.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: #2a2a2a;
}

.kicker {
  margin: 0 0 .7rem;
  color: var(--wine-mid);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .84rem;
}

.kicker.small {
  font-size: .76rem;
}

.hero-text {
  color: var(--muted);
  max-width: 720px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(95, 0, 8, .12);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center top;
}

.home-hero .hero-media {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,246,246,.95)),
    linear-gradient(135deg, var(--wine), var(--red-bright));
}

.home-hero .hero-media img {
  height: auto;
  min-height: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--wine-mid);
  color: var(--white);
  border: 2px solid var(--wine-mid);
  padding: .9rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
}

.btn:hover,
.btn:focus-visible {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: #cfcfcf;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--wine-dark);
  color: var(--white);
  border-color: var(--wine-dark);
}

.btn-light {
  background: var(--white);
  color: var(--wine-mid);
  border-color: var(--white);
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--soft);
}

.section-title {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-title h2,
.split h2,
.cta h2 {
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: .1em 0 .35em;
}

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

.service-card,
.download-card,
.fact,
.section-cards article,
.contact-box {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: .2s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(95, 0, 8, .22);
}

.service-card h2,
.service-card h3,
.download-card h3,
.fact h3,
.section-cards h2 {
  line-height: 1.16;
  margin: .2rem 0 .75rem;
}

.service-card p,
.download-card p,
.fact p {
  color: var(--muted);
}

.service-card span,
.text-link {
  color: var(--wine-mid);
  font-weight: 900;
  text-decoration: none;
}

.service-card span::after,
.text-link::after {
  content: " →";
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.steps {
  counter-reset: item;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: item;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  font-weight: 900;
}

.steps li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--wine-mid);
  margin-right: 16px;
}

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

.badge {
  display: inline-flex;
  background: #fff2f2;
  color: var(--wine-mid);
  border: 1px solid #eed0d3;
  border-radius: 999px;
  padding: .25rem .65rem;
  font-weight: 900;
  font-size: .78rem;
}

.page-head {
  padding: 76px 0 44px;
  background:
    radial-gradient(circle at 84% 0%, rgba(122, 0, 10, .10), transparent 30%),
    linear-gradient(135deg, #fff, #f6eeee);
}

.services-list {
  grid-template-columns: repeat(3, 1fr);
}

.company-grid,
.contact-grid,
.service-detail {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: start;
}

.contact-grid-simple {
  grid-template-columns: minmax(320px, 640px);
}

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1d1d1f;
}

.portrait img {
  display: block;
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center top;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.service-aside {
  position: sticky;
  top: 125px;
  border-left: 6px solid var(--wine-mid);
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 13px;
  height: 13px;
  background: var(--wine-mid);
  transform: rotate(45deg);
}

.section-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin-top: 2rem;
}

.contact-box {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: var(--white);
}

.contact-box a,
.contact-box .text-link,
.contact-link {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.cta {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-mid));
  color: var(--white);
  padding: 66px 0;
}

.cta .kicker {
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta p {
  max-width: 760px;
}

.site-footer {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: var(--white);
  padding: 42px 0;
  font-size: .98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-grid a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.download-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.download-card .text-link {
  margin-top: auto;
}

@media (max-width: 1120px) {
  .mainnav {
    gap: 2px;
  }

  .nav-link {
    padding-inline: .68rem;
    font-size: .95rem;
  }
}

@media (max-width: 1050px) {
  .card-grid,
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .company-grid,
  .contact-grid,
  .service-detail,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-media img,
  .portrait img {
    height: auto;
  }

  .home-hero .hero-media img {
    min-height: 0;
  }

  .service-aside {
    position: static;
  }

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

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 145px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mainnav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    background: var(--white);
    border: 1px solid rgba(95, 0, 8, .14);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

  .mainnav.is-open {
    display: flex;
  }

  .nav-link {
    color: var(--ink);
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    background: var(--soft);
    color: var(--wine-mid);
  }

  .submenu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 6px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu-link {
    padding: .62rem .8rem;
  }

  .hero {
    padding: 42px 0;
  }

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

  .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid,
  .download-grid,
  .fact-grid,
  .section-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .page-head {
    padding: 52px 0 28px;
  }

  .hero-copy h1,
  .page-head h1 {
    letter-spacing: -.04em;
  }

  .home-hero .hero-media img {
    padding: 0;
  }
}
