:root {
  --bg: #fff7ed;
  --card: #ffffff;
  --text: #251f1b;
  --muted: #675c53;
  --line: #eadfd5;
  --orange: #f59e2f;
  --orange-dark: #d86f00;
  --soft-orange: #fff0d9;
  --shadow: 0 18px 50px rgba(128, 72, 16, 0.12);
  --shadow-strong: 0 22px 60px rgba(128, 72, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 47, 0.2), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: #fff;
  border-radius: 0.5rem;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-card {
  background: var(--card);
  border: 1px solid rgba(234, 223, 213, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section:hover,
.hero:hover {
  border-color: rgba(245, 158, 47, 0.42);
  box-shadow: var(--shadow-strong);
}

.header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.header-side {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.rating-summary {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 300px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(145deg, #2d2a25, #423b33);
  color: #fff;
  box-shadow: 0 26px 55px rgba(37, 31, 27, 0.24);
  overflow: hidden;
}

.rating-summary::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -12px;
  height: 24px;
  border-radius: 0 0 14px 14px;
  background: var(--orange-dark);
}

.rating-badge {
  position: absolute;
  top: 26px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff3f24;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.rating-title {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.98rem;
  font-weight: 900;
}

.rating-average {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 12px;
  border: 0;
  background: transparent;
}

.rating-average strong {
  color: #fff;
  font-size: clamp(4.2rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.rating-average span {
  display: block;
  color: #ffbf1f;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.rating-average small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  font-weight: 800;
}

.rating-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rating-row:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 47, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.rating-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.rating-logo-yandex {
  background: #ff3f24;
}

.rating-logo-2gis {
  background: #20b563;
}

.rating-source {
  font-weight: 900;
}

.rating-row strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.rating-row small {
  grid-column: 2 / -1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  font-weight: 800;
}

.anchor-menu {
  position: sticky;
  top: 10px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
}

.anchor-menu a {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.anchor-menu a:hover {
  background: var(--soft-orange);
  color: var(--text);
  transform: translateY(-1px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.brand-logo {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.brand-name,
.brand-subtitle,
.eyebrow,
.lead,
p,
h1,
h2,
h3 {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.24rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-actions,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-actions {
  justify-content: flex-end;
  max-width: 760px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: var(--soft-orange);
  box-shadow: 0 10px 22px rgba(245, 158, 47, 0.18);
}

.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1f160b;
}

.button-primary:hover {
  background: #ffb457;
}

.hero,
.section {
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 18px;
}

.hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-top: 10px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 780px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.pill-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #f3c27a;
  border-radius: 999px;
  background: var(--soft-orange);
  font-weight: 700;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

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

.inline-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--orange-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.review-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-card,
.service-grid article,
.case-list article,
.faq-list details,
.contact-grid a,
.contact-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.review-card {
  padding: 16px;
}

.review-card:hover,
.service-grid article:hover,
.case-list article:hover,
.contact-grid a:hover,
.faq-list details:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 47, 0.55);
  box-shadow: 0 14px 30px rgba(128, 72, 16, 0.12);
}

.review-top {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.review-top span {
  color: var(--orange-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.review-card p,
.case-list p,
.faq-list p {
  color: var(--muted);
}

.review-actions {
  margin-top: 18px;
}

.compact {
  padding-bottom: 34px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-grid article {
  min-height: 98px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  font-weight: 800;
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-list article {
  padding: 18px;
  display: grid;
  gap: 6px;
}

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

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
}

.faq-list p {
  padding: 0 18px 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid a,
.contact-grid div {
  min-height: 96px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-decoration: none;
}

.contact-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid strong {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a,
.site-footer button {
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--orange-dark);
}

.privacy-content {
  display: grid;
  gap: 18px;
}

.privacy-content h1 {
  max-width: 900px;
}

.privacy-content h2 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.privacy-content p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.privacy-content a {
  color: var(--orange-dark);
  font-weight: 800;
}

.policy-date {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  width: 48px;
  height: 48px;
  border: 1px solid #f3c27a;
  border-radius: 50%;
  background: var(--orange);
  color: #1f160b;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  box-shadow: 0 14px 30px rgba(128, 72, 16, 0.2);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #ffb457;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 9;
  width: min(760px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #f3c27a;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 31, 27, 0.22);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p + p {
  margin-top: 4px;
  color: var(--muted);
}

.cookie-banner a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--orange-dark);
  font-weight: 800;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 960px) {
  .header-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-side {
    justify-content: flex-start;
    width: 100%;
  }

  .quick-actions,
  .quick-actions .button {
    width: 100%;
  }

  .quick-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .hero-top {
    grid-template-columns: 1fr;
  }

  .rating-summary {
    width: min(100%, 460px);
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero,
  .section,
  .header-card {
    padding: 18px;
  }

  .hero {
    min-height: auto;
  }

  .brand {
    align-items: flex-start;
    min-width: 0;
  }

  .brand-logo {
    width: 54px;
  }

  .rating-summary {
    min-width: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .rating-badge {
    top: 20px;
    right: 22px;
    width: 42px;
    height: 42px;
  }

  .rating-average {
    gap: 14px;
  }

  .rating-average strong {
    font-size: 4rem;
  }

  .text-grid,
  .review-grid,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .review-actions,
  .review-actions .button {
    width: 100%;
  }

  .anchor-menu {
    position: static;
  }

  .anchor-menu a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 10px;
  }

  .cookie-actions,
  .cookie-actions .button {
    width: 100%;
  }

  .scroll-top {
    right: 12px;
    bottom: 12px;
  }
}
