:root {
  --color-bg: #fcfaf6;
  --color-surface: #f8f3e9;
  --color-text: #14213d;
  --color-text-soft: #3f4e69;
  --color-accent: #c5a25a;
  --color-accent-dark: #a6813d;
  --color-border: #e5ded0;
  --color-deep: #0c1a36;
  --color-rose: #f4ece2;
  --color-mist: #e9edf7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 52px rgba(12, 26, 54, 0.12);
  --shadow-card: 0 14px 34px rgba(12, 26, 54, 0.09);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, #f5ede0 0%, rgba(245, 237, 224, 0) 30%),
    radial-gradient(circle at 88% 0%, #e8edf9 0%, rgba(232, 237, 249, 0) 28%),
    linear-gradient(180deg, #fcfaf6 0%, #fbf8f2 44%, #f7f5f0 100%);
  color: var(--color-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

#cases-preview .card img,
section[id^="case-"] .card img {
  width: 100%;
  height: auto;
}

.showreel-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #0b162f;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.55;
}

body::before {
  top: -90px;
  left: -100px;
  background: radial-gradient(circle, #f2e7d5 0%, rgba(242, 231, 213, 0) 72%);
}

body::after {
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, #e2e9f8 0%, rgba(226, 233, 248, 0) 72%);
}

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

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

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

.section {
  padding: 64px 0;
  position: relative;
}

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

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-accent-dark);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--color-deep);
  line-height: 1.15;
  margin: 0 0 16px;
}

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

h2 {
  font-size: clamp(1.6rem, 6vw, 2.7rem);
}

h3 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
}

p {
  margin: 0 0 16px;
  color: var(--color-text-soft);
}

ul {
  margin: 0;
  padding-left: 20px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(252, 249, 243, 0.88);
  border-bottom: 1px solid rgba(200, 161, 74, 0.26);
}

header.site-header .container {
  width: min(100% - 32px, 1480px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--color-deep);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-header nav {
  min-width: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(197, 162, 90, 0.65);
}

.menu-toggle {
  border: 1px solid #d8caa8;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ea 100%);
  color: var(--color-deep);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  background: #fefdf9;
  border-bottom: 1px solid var(--color-border);
  display: none;
}

.nav-list.open {
  display: block;
}

.nav-list a {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid #eee6d9;
  font-weight: 600;
}

.header-phone {
  display: none;
}

.hero {
  padding: 56px 0 42px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 20px;
}

.hero-grid > div:first-child {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 244, 236, 0.96) 100%);
  border: 1px solid #e8dcc5;
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  padding: 22px;
}

.hero-grid > div:last-child img {
  border-radius: 28px;
  border: 1px solid #e2d6be;
  box-shadow: 0 24px 54px rgba(12, 26, 54, 0.2);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  min-height: 46px;
  font-weight: 700;
  transition: 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #0c1a36 0%, #1d3768 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 35, 72, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #112a56;
  color: #ffffff;
}

.btn-secondary {
  border-color: #d0b271;
  color: var(--color-deep);
  background: linear-gradient(180deg, #fffdf8 0%, #f7efdf 100%);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f5ecd8;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid #e6dcc8;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, rgba(197, 162, 90, 0.75) 0%, rgba(197, 162, 90, 0.12) 100%);
}

.card h3 {
  margin-bottom: 10px;
}

.stat {
  padding: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f3ea 100%);
  border-radius: var(--radius-sm);
  border: 1px solid #e9deca;
}

.stat-value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-deep);
}

.stat-label {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.98rem;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-item {
  background: linear-gradient(160deg, #ffffff 0%, #fcf8f1 100%);
  border: 1px solid #e6dbc6;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.case-meta,
.review-meta,
.price-meta {
  font-size: 0.92rem;
  color: #54617a;
}

.table-like {
  display: grid;
  gap: 10px;
}

.table-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
}

.steps {
  counter-reset: step;
}

.steps li {
  list-style: none;
  margin-bottom: 12px;
  padding: 14px 14px 14px 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px;
}

.faq-item h3 {
  margin-bottom: 6px;
}

blockquote {
  margin: 0;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--color-accent);
  background: linear-gradient(180deg, #fffefb 0%, #faf6ed 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  position: relative;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 10px;
  color: rgba(197, 162, 90, 0.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.cta-box {
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    radial-gradient(circle at top right, #f0e1bd 0%, rgba(240, 225, 189, 0) 46%),
    radial-gradient(circle at bottom left, #e6ecfb 0%, rgba(230, 236, 251, 0) 42%),
    linear-gradient(180deg, #fffdfa 0%, #f9f5ee 100%);
  border: 1px solid #e4d4b4;
  box-shadow: var(--shadow-soft);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--color-deep);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8d7d2;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--color-deep);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

.checkbox-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: #55627d;
}

.notice {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0 18px;
  background: #ffffff;
}

.notice.success {
  border-color: #9fc7ab;
  background: #f2fbf4;
  color: #1d5c31;
}

.notice.error {
  border-color: #d6a7a7;
  background: #fff5f5;
  color: #7a1f1f;
}

.breadcrumbs {
  margin: 16px 0;
  font-size: 0.9rem;
  color: #6f6a64;
}

.breadcrumbs a {
  color: #6f6a64;
}

.article p,
.article li {
  color: var(--color-text-soft);
}

.video-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-grid .card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-grid .card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #0b162f;
}

.video-grid .card h2 {
  margin-top: 14px;
}

.video-grid .card > p:last-child {
  margin-top: 12px;
  margin-bottom: 0;
}

.video-grid .btn {
  width: 100%;
}

footer.site-footer {
  background:
    radial-gradient(circle at 20% 0%, #182f57 0%, rgba(24, 47, 87, 0) 36%),
    linear-gradient(180deg, #0c1a36 0%, #091328 100%);
  color: #d8e2f1;
  padding: 36px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(197, 162, 90, 0.38);
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-title {
  margin: 0 0 10px;
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a,
footer.site-footer a {
  color: #d7dfed;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(215, 223, 237, 0.2);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: linear-gradient(180deg, #fffefb 0%, #faf5ec 100%);
  border: 1px solid #e1d6c0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 120;
}

@media (min-width: 720px) {
  .section {
    padding: 78px 0;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .header-inner {
    min-height: auto;
    padding: 10px 0 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .site-header nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-list {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    background: linear-gradient(180deg, #fffefb 0%, #f7f1e6 100%);
    border-bottom: 0;
    border: 1px solid #dce3f0;
    border-radius: 18px;
    gap: 4px;
    padding: 4px;
    box-shadow: 0 8px 22px rgba(12, 26, 54, 0.06);
  }

  .nav-list li {
    flex: 0 1 auto;
  }

  .nav-list a {
    border-top: 0;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a.active {
    background: linear-gradient(180deg, #f4ead7 0%, #efe2ca 100%);
    color: var(--color-deep);
  }

  .header-phone {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--color-deep);
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .cta-box {
    padding: 34px;
  }
}

@media (min-width: 992px) {
  .hero-grid > div:first-child {
    padding: 30px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-fade {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-grid > div:first-child {
    animation: rise-fade 0.65s ease both;
  }

  .hero-grid > div:last-child {
    animation: rise-fade 0.75s ease both;
  }

  .section .card {
    animation: rise-fade 0.6s ease both;
  }
}

@media (min-width: 992px) and (max-width: 1380px) {
  .logo span {
    display: none;
  }

  .header-phone {
    display: none;
  }
}

@media (min-width: 1460px) {
  .header-phone {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
