/* AVOkubit — agency landing */
:root {
  --green: #7cda58;
  --green-deep: #397d29;
  --green-mid: #3b8f22;
  --black: #101110;
  --white: #f6f6f2;
  --muted: #a8aaa6;
  --rule: #ffffff30;
  --card-dark: #20231f;
  --input-bg: #141614;
  --input-border: #ffffff38;
  --pad: clamp(22px, 4.5vw, 80px);
  --section: clamp(72px, 9vw, 144px);
  --radius-slab: 40px;
  --radius-card: 20px;
  --font: "Montserrat", Arial, sans-serif;
  --header-h: 80px;
  --max: 1800px;
}

html[data-theme="light"] {
  --muted: #60665e;
  --rule: #10111026;
  --card-dark: #ffffff;
  --input-bg: #ffffff;
  --input-border: #10111033;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background: var(--white);
  color: var(--black);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

em {
  font-style: normal;
  color: var(--green);
}

html[data-theme="light"] em {
  color: var(--green-deep);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
}

.container {
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1500;
  height: var(--header-h);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.site-header[data-overlay="true"][data-scrolled="false"] {
  background: transparent;
}

.site-header[data-scrolled="true"] {
  background: #101110f5;
  box-shadow: 0 1px #ffffff18;
}

html[data-theme="light"] .site-header[data-scrolled="true"] {
  background: #f6f6f2f5;
  box-shadow: 0 1px #10111018;
}

.site-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-inline: var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo__img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--black);
}

.header-phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: inherit;
}

.icon-btn--accent,
.header-phone {
  color: var(--black);
}

.site-header[data-scrolled="true"] .icon-btn--accent,
.site-header[data-scrolled="true"] .header-phone {
  color: var(--white);
}

html[data-theme="light"] .site-header[data-scrolled="true"] .icon-btn--accent,
html[data-theme="light"] .site-header[data-scrolled="true"] .header-phone {
  color: var(--black);
}

.icon-btn:hover {
  background: #10111014;
}

html[data-theme="light"] .icon-btn:hover {
  background: #10111010;
}

.header-actions .btn-green {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.header-actions .btn-green:hover {
  background: var(--black);
  color: var(--white);
}

.site-header[data-scrolled="true"] .header-actions .btn-green {
  color: var(--white);
  border-color: var(--white);
}

.site-header[data-scrolled="true"] .header-actions .btn-green:hover {
  background: var(--white);
  color: var(--black);
}

html[data-theme="light"] .site-header[data-scrolled="true"] .header-actions .btn-green {
  color: var(--black);
  border-color: var(--black);
}

html[data-theme="light"] .site-header[data-scrolled="true"] .header-actions .btn-green:hover {
  background: var(--black);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 36px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-green {
  background: var(--green);
  color: var(--black);
}

.btn-green:hover {
  background: var(--white);
  color: var(--black);
}

.btn-black {
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  min-height: 52px;
}

.btn-black:hover {
  background: #1c1e1c;
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background: var(--green);
}

.btn-outline {
  border: 1px solid #ffffff60;
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 16px;
}

html[data-theme="light"] .btn-outline {
  border-color: #10111040;
}

.burger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #ffffff60;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

html[data-theme="light"] .burger {
  border-color: #10111040;
}

.burger-bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 1400;
  background: var(--black);
  padding: 28px var(--pad) 40px;
  display: none;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}

.mobile-menu.is-open {
  display: flex;
}

html[data-theme="light"] .mobile-menu {
  background: var(--white);
}

.mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mobile-menu__contacts {
  margin-top: auto;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 12% -10%, #9be86f 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 8%, #68c944 0%, transparent 48%),
    linear-gradient(160deg, #86df5f 0%, var(--green) 42%, #6dcb4a 100%);
  color: var(--black);
  padding: calc(var(--header-h) + 24px) var(--pad) 48px;
  border-bottom-left-radius: var(--radius-slab);
  border-bottom-right-radius: var(--radius-slab);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 690px;
}

@media (min-width: 1600px) {
  .hero {
    min-height: 820px;
  }
}

.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
  animation: heroOrbDrift 18s ease-in-out infinite;
}

.hero__orb--1 {
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  top: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
  animation-duration: 22s;
}

.hero__orb--2 {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  bottom: 8%;
  left: -10%;
  background: radial-gradient(circle, rgba(57, 125, 41, 0.35) 0%, rgba(57, 125, 41, 0) 72%);
  animation-duration: 26s;
  animation-direction: reverse;
}

.hero__orb--3 {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(255, 245, 180, 0.42) 0%, rgba(255, 245, 180, 0) 70%);
  animation-duration: 16s;
}

.hero__sheen {
  position: absolute;
  inset: -20% -10%;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 64%);
  mix-blend-mode: soft-light;
  animation: heroSheen 14s ease-in-out infinite;
}

@keyframes heroOrbDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  35% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
  70% {
    transform: translate3d(-4%, 3%, 0) scale(0.96);
  }
}

@keyframes heroSheen {
  0%,
  100% {
    transform: translateX(-8%) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(10%) rotate(2deg);
    opacity: 0.7;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.hero__kicker {
  font-size: 12px;
  margin: 0 0 24px;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7.1vw, 113px);
  font-weight: 400;
  letter-spacing: -0.066em;
  line-height: 0.99;
  max-width: 740px;
  text-wrap: balance;
}

.hero__bottom {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero__link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__caption {
  margin: 0;
  font-size: 14px;
  max-width: 420px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #10111040;
  font-size: 13px;
  font-weight: 500;
  background: #10111010;
}

.chip:hover {
  background: #10111018;
}

.yandex-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.yandex-badge__star {
  color: #ffd54a;
}

.hero__aside {
  max-width: 600px;
  justify-self: end;
  width: 100%;
}

.hero__aside-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.price-list {
  border-top: 1px solid #ffffff2e;
}

.price-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ffffff2e;
  font-size: 15px;
  font-weight: 500;
}

.hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 18px;
}

.hero__quick a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proof {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #ffffff2e;
  position: relative;
  z-index: 1;
}

.proof__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
  font-size: 13px;
}

.proof__head a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.proof-card {
  display: grid;
  gap: 8px;
}

.proof-card__img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #111311;
}

.proof-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-card__name {
  font-size: 13px;
  font-weight: 500;
}

.proof-card__cat {
  font-size: 12px;
  opacity: 0.75;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section) 0;
}

.section__label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.2vw, 78px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
  max-width: 16ch;
}

.section__lead {
  margin: 0 0 32px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.subhead {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

/* Estimate */
.estimate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.estimate-tab {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.estimate-tab.is-active {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.addon__plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.addon h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
}

.addon p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.addon__price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.summary-card {
  background: var(--card-dark);
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--rule);
}

html[data-theme="light"] .summary-card {
  background: #fff;
}

.summary-card__format {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.summary-card__total {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-weight: 400;
}

.summary-card__meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.summary-card__meta strong {
  color: inherit;
  font-weight: 500;
  color: var(--white);
}

html[data-theme="light"] .summary-card__meta strong {
  color: var(--black);
}

.summary-card__actions {
  display: grid;
  gap: 10px;
}

.summary-card__related {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
}

.summary-card__related img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

/* Express audit */
.express-slab {
  background: var(--card-dark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-slab);
  margin-inline: var(--pad);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

html[data-theme="light"] .express-slab {
  background: #fff;
}

.express-slab h2 {
  max-width: 16ch;
}

.express-slab .section__lead {
  margin-bottom: 20px;
}

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

.express-slab__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
}

.express-slab__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.express-slab__form {
  display: grid;
  gap: 12px;
  background: #101110;
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid #ffffff22;
}

html[data-theme="light"] .express-slab__form {
  background: #f3f4f0;
  border-color: #10111018;
}

.express-slab__form .field label {
  color: var(--muted);
}

.express-slab__form .field input,
.express-slab__form .field textarea {
  background: #fff;
  color: #101110;
  border-color: #10111026;
}

.express-slab__form .field textarea {
  min-height: 88px;
}

.express-slab__form .consent,
.express-slab__form .consent a {
  color: var(--muted);
}

/* Showreel */
.showreel {
  text-align: center;
}

.showreel__frame {
  position: relative;
  margin: 28px auto 0;
  max-width: 1100px;
  border-radius: 24px;
  overflow: hidden;
  background: #111311;
  aspect-ratio: 16 / 9;
}

.showreel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.showreel__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #101110a0;
  border: 1px solid #ffffff40;
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 28px;
}

/* Price cards */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}

.price-card {
  background: #fff;
  color: #101110;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.price-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.price-card__desc {
  margin: 0;
  color: #5b6158;
  font-size: 14px;
}

.price-card__price {
  font-size: 22px;
  font-weight: 500;
}

.price-card__price span {
  display: block;
  font-size: 13px;
  color: #5b6158;
  font-weight: 400;
  margin-top: 4px;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1;
}

.price-card li {
  font-size: 14px;
  padding-left: 14px;
  position: relative;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
}

.price-card__note {
  margin: 0;
  font-size: 13px;
  color: #5b6158;
}

.price-card .btn-black {
  width: 100%;
}

.price-card__more {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #101110;
}

.pay-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Mini band */
.mini-band {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px;
  margin-top: 36px;
}

.mini-band__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.pill {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 13px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: inherit;
  padding: 12px 14px;
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
}

.consent {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  display: none;
}

.form-status.is-ok {
  display: block;
  color: var(--green);
}

.form-status.is-err {
  display: block;
  color: #fa9292;
}

/* Services list */
.services-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.service-row__num {
  color: var(--muted);
  font-size: 13px;
}

.service-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-row__price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.task-box {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.task-box h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 400;
}

.task-box a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.task-box a:last-child {
  border-bottom: 0;
}

/* Cases island */
.cases-island {
  background: #fff;
  color: #101110;
  border-radius: var(--radius-slab);
  padding: 80px var(--pad);
  margin-inline: var(--pad);
}

.cases-island h2 {
  max-width: 12ch;
}

.cases-island em {
  color: var(--green-deep);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 24px 0 36px;
}

.case-filters a,
.case-filters button {
  font-size: 14px;
  color: #5b6158;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-filters .is-active,
.case-filters a:hover,
.case-filters button:hover {
  color: #101110;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 28px;
}

.case-card {
  display: grid;
  gap: 14px;
}

.case-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #111311;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card__media img {
  transform: scale(1.03);
}

.case-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.case-card p {
  margin: 0;
  color: #5b6158;
  font-size: 14px;
}

.case-card__link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cases-more {
  margin-top: 40px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.about-points {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.about-points h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.award {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.award__place {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 400;
}

.award__year {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.award h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Reviews */
.reviews-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 24px 0 28px;
}

.reviews-switcher button {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-switcher button.is-active {
  color: inherit;
}

.review-card {
  background: var(--card-dark);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  border: 1px solid var(--rule);
}

html[data-theme="light"] .review-card {
  background: #fff;
}

.review-card__counter {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.review-card blockquote {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  font-weight: 400;
}

.review-card__meta h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.review-card__meta a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.review-nav button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 18px;
}

.review-panel {
  display: none;
}

.review-panel.is-active {
  display: grid;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.blog-card {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.blog-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.blog-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.blog-card a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-bar {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
}

.channel-bar a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Terms accordion */
.accordion {
  display: grid;
  gap: 0;
}

.accordion details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 70ch;
}

/* Contact slab */
.contact-slab {
  background: var(--green);
  color: var(--black);
  border-radius: var(--radius-slab);
  margin-inline: var(--pad);
  padding: 80px var(--pad);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
}

.contact-slab h2 {
  max-width: 12ch;
  color: var(--black);
}

.contact-slab em {
  color: #1b2c15;
}

.contact-slab__info {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  font-size: 18px;
  font-weight: 500;
}

.contact-slab__info a:hover {
  text-decoration: underline;
}

.contact-slab__promises {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form .btn-black {
  background: var(--black);
  border-radius: 999px;
}

.contact-form .btn-black:hover {
  background: #1c1e1c;
}

.contact-form .field label {
  color: #101110;
  font-weight: 500;
}

.contact-form .field input,
.contact-form .field textarea {
  background: #ffffff;
  color: #101110;
  border-color: #10111033;
}

.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: #5d635b;
}

.contact-form .consent,
.contact-form .consent a {
  color: #1b2c15;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary span {
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  padding-top: 4px;
}

.faq details p {
  margin: 12px 0 0 52px;
  color: var(--muted);
  font-size: 14px;
}

/* SEO copy */
.seo-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.seo-copy h2 {
  color: inherit;
  font-size: clamp(28px, 3vw, 42px);
  max-width: none;
}

/* Directory */
.directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.directory h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.58;
}

.directory a {
  display: block;
  font-size: 14px;
  min-height: 34px;
  padding: 6px 0;
}

.directory a:hover {
  color: var(--green);
}

.directory details {
  margin-top: 8px;
}

.directory summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.directory summary::-webkit-details-marker {
  display: none;
}

.directory summary::before {
  content: "+";
  color: var(--green);
  font-weight: 600;
}

.directory details[open] summary::before {
  content: "−";
}

.directory details .directory__extra {
  display: grid;
  padding-left: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px var(--pad) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 28px;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-brand {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
}

.footer-brand__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
}

.footer-brand__name {
  color: var(--white);
  letter-spacing: -0.03em;
}

html[data-theme="light"] .footer-brand__name {
  color: var(--black);
}

.footer-brand a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-brand__top:hover {
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
}

/* Dialog */
.local-dialog {
  width: min(600px, calc(100% - 32px));
  border: 1px solid #454545;
  border-radius: 8px;
  background: #101010;
  color: #fff;
  padding: 48px;
  margin: auto;
}

.local-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.local-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #fff;
}

.local-dialog {
  position: relative;
}

.local-dialog__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  color: #a8aaa6;
}

.local-dialog h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.local-dialog > p {
  margin: 0 0 20px;
  color: #a8aaa6;
  font-size: 15px;
}

.local-dialog .field {
  margin: 16px 0;
}

.local-dialog .field input,
.local-dialog .field textarea {
  background: #191919;
  border-color: #666;
  color: #fff;
  border-radius: 8px;
}

.local-dialog .btn-white {
  border-radius: 40px;
  padding: 16px 24px;
}

.dialog-messengers {
  margin-top: 20px;
  font-size: 14px;
  color: #a8aaa6;
}

.dialog-messengers a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 12px;
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 520px;
  margin-right: auto;
  background: #1a1c1a;
  color: #f6f6f2;
  border: 1px solid #ffffff24;
  border-radius: 16px;
  padding: 18px;
  display: none;
  gap: 14px;
  box-shadow: 0 16px 40px #0008;
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: #c5c7c3;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 1120px) {
  .hero__grid,
  .estimate-grid,
  .express-slab,
  .services-layout,
  .about-grid,
  .faq-grid,
  .contact-slab,
  .seo-copy,
  .review-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .awards-grid,
  .directory {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .task-box {
    position: static;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .logo__img {
    display: none;
  }
}

@media (max-width: 860px) {
  .header-phone span,
  .header-actions .btn-green,
  .header-actions a[aria-label="Сайт АО КУБИТ"],
  .header-actions a[aria-label="Написать на почту"] {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .cases-grid,
  .blog-grid,
  .proof__grid,
  .awards-grid,
  .directory {
    grid-template-columns: 1fr;
  }

  .cases-island,
  .contact-slab,
  .express-slab {
    margin-inline: 12px;
    padding: 40px 20px;
    border-radius: 24px;
  }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 16px);
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .local-dialog {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__orb,
  .hero__sheen {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
