@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1a4a9e;
  --blue-deep: #0f2f6b;
  --blue-soft: #2a63c7;
  --red: #c23a2e;
  --red-deep: #9a2c23;
  --floor: #a8322f;
  --ink: #1a1c22;
  --muted: #5a6070;
  --paper: #f4f6fb;
  --white: #ffffff;
  --line: rgba(26, 74, 158, 0.14);
  --shadow: 0 18px 40px rgba(15, 47, 107, 0.16);
  --radius: 4px;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(26, 74, 158, 0.04), transparent 280px),
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(194, 58, 46, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

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

h1,
h2,
h3,
.h-display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.55em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 47, 107, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
  opacity: 0.92;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  display: block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(194, 58, 46, 0.85);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero {
  background-color: var(--blue-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 47, 107, 0.72) 0%, rgba(15, 47, 107, 0.38) 48%, rgba(154, 44, 35, 0.22) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(15, 47, 107, 0.55));
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 640px;
  animation: rise 0.85s ease-out both;
}

.hero-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  line-height: 0.92;
  margin: 0 0 0.4rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero p {
  font-size: 1.08rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.08);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 38rem;
}

.section-head .rule {
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  margin-bottom: 1rem;
  transform-origin: left;
  animation: pulse-line 3.5s ease-in-out infinite;
}

.section-alt {
  background: linear-gradient(180deg, #e8eef8 0%, var(--paper) 100%);
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 28px,
    var(--red) 28px 40px,
    transparent 40px 52px
  );
}

.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 0.9em;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-media {
  order: -1;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 18px;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
}

/* How to use service block */
.howto {
  background: var(--blue-deep);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.howto::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -120px;
  top: -140px;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.howto h2 {
  color: var(--white);
}

.howto-steps {
  display: grid;
  gap: 1rem;
}

.howto-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--red);
  animation: slide-in 0.6s ease both;
}

.howto-step:nth-child(2) {
  animation-delay: 0.12s;
}

.howto-step:nth-child(3) {
  animation-delay: 0.24s;
}

.howto-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.howto-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.phone-xl {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.phone-xl:hover {
  color: #ffd4cf;
}

/* Feature strips */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--white);
  border-top: 4px solid var(--blue);
  box-shadow: 0 8px 24px rgba(15, 47, 107, 0.08);
}

.pillar:nth-child(2) {
  border-top-color: var(--red);
}

.pillar h3 {
  margin-bottom: 0.4rem;
}

.pillar p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Price table */
.price-wrap {
  overflow-x: auto;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.price-table th,
.price-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  background: var(--blue-deep);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover td {
  background: rgba(26, 74, 158, 0.05);
}

.price-table .amt {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red);
  white-space: nowrap;
}

/* Schedule */
.schedule {
  display: grid;
  gap: 0.75rem;
}

.sched-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--white);
  border-left: 5px solid var(--blue);
  box-shadow: 0 4px 16px rgba(15, 47, 107, 0.06);
}

.sched-row:nth-child(even) {
  border-left-color: var(--red);
}

.sched-day {
  background: var(--blue-deep);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  text-align: center;
}

.sched-row:nth-child(even) .sched-day {
  background: var(--red-deep);
}

.sched-body {
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.sched-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  font-size: 0.98rem;
}

.sched-time {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--blue);
  min-width: 6.5rem;
}

/* Brand banners */
.brand-rail {
  padding: 2.5rem 0;
  background: var(--ink);
}

.brand-rail h2 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.brand-rail .lede {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.brand-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.brand-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.brand-card img {
  width: min(100%, 250px);
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s ease;
}

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

/* Contact blocks */
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: var(--radius);
}

.contact-info {
  padding: 2rem;
}

.contact-info dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-info dt {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-info dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-map {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(26, 74, 158, 0.85), rgba(194, 58, 46, 0.7)),
    url("../assets/img/hero-terem.jpg") center / cover;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.contact-map p {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Legal / prose pages */
.page-hero {
  background: var(--blue-deep);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 20%;
  width: 180px;
  height: 180px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  transform: rotate(18deg);
}

.page-hero h1 {
  margin-bottom: 0.35rem;
}

.page-hero p {
  margin: 0;
  opacity: 0.85;
  max-width: 36rem;
}

.legal {
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  max-width: 780px;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 1.75rem;
  color: var(--blue-deep);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.meta-box {
  display: grid;
  gap: 0.65rem;
  background: #eef2fa;
  border-left: 4px solid var(--blue);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

.meta-box strong {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(transparent, rgba(15, 47, 107, 0.85));
  color: var(--white);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: #0b1a3a;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: lowercase;
  display: block;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.4s ease both;
}

.cookie-banner p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  font-size: 1rem;
  padding: 0.55rem 1rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Page utilities */
.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split.reverse,
  .howto-grid,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .pillars,
  .brand-track,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--blue-deep);
    padding: 0.5rem 1rem 1rem;
    display: none;
    border-bottom: 3px solid var(--red);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .hero {
    min-height: 70vh;
  }

  .pillars,
  .brand-track,
  .gallery {
    grid-template-columns: 1fr;
  }

  .sched-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
