/* Главная — ремонт квартир в Москве */
:root {
  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-dark: #1c2434;
  --color-dark-soft: #2d3a52;
  --color-accent: #c17f3a;
  --color-accent-hover: #a86a2e;
  --color-accent-light: #f5ebe0;
  --color-text: #3d4556;
  --color-muted: #6b7280;
  --color-border: #e8e4de;
  --color-success: #2d6a4f;
  --font: "Manrope", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(28, 36, 52, 0.08);
  --shadow-lg: 0 12px 48px rgba(28, 36, 52, 0.12);
  --container: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-dark);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section {
  padding: 72px 0;
}

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

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.section__desc {
  margin: 0 0 40px;
  max-width: 640px;
  color: var(--color-muted);
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193, 127, 58, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
}

.btn--dark:hover {
  background: var(--color-dark-soft);
}

/* Top bar */
.topbar {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "city hours"
    "search search";
  align-items: center;
  gap: 8px 12px;
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

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

.topbar__item--city {
  grid-area: city;
  justify-self: start;
}

.topbar__item--hours {
  grid-area: hours;
  justify-self: end;
  font-size: 12px;
}

.topbar select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.topbar select option {
  color: var(--color-dark);
}

.topbar-search {
  grid-area: search;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.topbar-search:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar-search__input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
}

.topbar-search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.topbar-search__input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: invert(1);
}

.topbar-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.topbar-search__btn:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .topbar__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "city search hours";
    gap: 16px 24px;
  }

  .topbar-search {
    max-width: 360px;
    justify-self: center;
    width: 100%;
  }

  .topbar__item--city,
  .topbar__item--hours {
    justify-self: auto;
  }

  .topbar__item--hours {
    white-space: nowrap;
    font-size: 13px;
  }
}

@media (min-width: 992px) {
  .topbar-search {
    max-width: 420px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header__inner {
  overflow-x: clip;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 0;
  min-height: var(--header-h);
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 43px;
  width: auto;
  max-width: min(70vw, 216px);
  object-fit: contain;
}

.logo--footer img {
  height: 40px;
  max-width: 180px;
}

@media (max-width: 480px) {
  .logo img {
    height: 36px;
    max-width: min(65vw, 162px);
  }
}

.nav {
  display: none;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
}

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

.header__contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.header__phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-accent);
}

.header__phone--mobile {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  padding: 8px 10px;
  background: var(--color-accent-light);
  border-radius: 8px;
  color: var(--color-dark);
}

.header__phone--mobile:hover {
  background: var(--color-accent);
  color: #fff;
}

.header__callback {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.header__cta {
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  max-width: 100%;
}

.header__cta-text--full {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--color-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 20px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__title {
  margin: 16px 0 4px;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.mobile-nav__title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Service menu bar */
.header-services {
  position: relative;
  z-index: 2;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-services__nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header-services__nav::-webkit-scrollbar {
  display: none;
}

.header-services__link {
  flex: 0 0 auto;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.header-services__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 991px) {
  .header__cta {
    display: none;
  }
}

@media (max-width: 380px) {
  .header__phone--mobile {
    font-size: 13px;
    padding: 8px;
  }
}

@media (min-width: 992px) {
  .header__inner {
    flex-wrap: nowrap;
    gap: 12px 16px;
    padding: 0;
    height: var(--header-h);
  }

  .nav,
  .header__contacts {
    display: flex;
  }

  .header__phone--mobile {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }

  .header-services__nav {
    justify-content: space-between;
    overflow: visible;
  }

  .header-services__link {
    flex: 1 1 auto;
    text-align: center;
    padding: 14px 12px;
    font-size: 13px;
  }
}

@media (min-width: 1200px) {
  .nav {
    gap: 24px;
  }

  .nav a {
    font-size: 14px;
  }

  .header__phone {
    font-size: 18px;
  }

  .header__cta {
    padding: 12px 20px;
    font-size: 14px;
  }

  .header__cta-text--short {
    display: none;
  }

  .header__cta-text--full {
    display: inline;
  }

  .header-services__link {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 72px;
  background-color: #e8edf2;
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--color-dark);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: start;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
}

.hero__subtitle {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 520px;
}

.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
}

.hero__badge svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Calculator */
.calc {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.calc__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

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

.calc__group {
  margin-bottom: 20px;
}

.calc__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
}

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

.calc__chip {
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.calc__chip:hover,
.calc__chip.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-dark);
}

.calc__range-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc input[type="range"] {
  flex: 1;
  accent-color: var(--color-accent);
}

.calc__area-value {
  min-width: 72px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-dark);
}

.calc select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
}

.calc__result {
  margin-top: 24px;
  padding: 20px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  text-align: center;
}

.calc__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-dark);
}

.calc__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
}

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

.calc__form {
  display: grid;
  gap: 10px;
}

.calc__form input {
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr 420px;
    align-items: center;
  }
}

/* Services */
.services__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--color-dark);
}

.service-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.service-card__meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

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

.service-card .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* Portfolio */
.portfolio__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.portfolio-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #d4cfc7 0%, #b8b0a4 100%);
  position: relative;
}

.portfolio-card__img::after {
  content: "До / После";
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.portfolio-card__body {
  padding: 20px;
}

.portfolio-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--color-dark);
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portfolio-card__tag {
  padding: 4px 10px;
  font-size: 12px;
  background: var(--color-bg);
  border-radius: 6px;
  color: var(--color-muted);
}

.portfolio-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 13px;
}

.portfolio-card__stats strong {
  display: block;
  color: var(--color-dark);
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--color-dark);
}

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

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step:nth-child(4),
  .step:nth-child(5),
  .step:nth-child(6) {
    grid-column: span 1;
  }
}

/* Trust */
.trust__grid {
  display: grid;
  gap: 32px;
}

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

.stat {
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--color-border);
}

.stat__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

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

.trust__feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.trust__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 10px;
  font-size: 20px;
}

.trust__feature h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--color-dark);
}

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

@media (min-width: 992px) {
  .trust__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

/* Reviews */
.reviews__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.review {
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.review__stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review__text {
  margin: 0 0 16px;
  font-size: 15px;
  font-style: italic;
  color: var(--color-text);
}

.review__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

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

/* FAQ */
.faq__list {
  max-width: 800px;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq__item.is-open .faq__question::after {
  content: "−";
}

.faq__answer {
  display: none;
  padding: 0 0 20px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* CTA */
.cta {
  padding: 64px 0;
  background: var(--color-dark);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  color: #fff;
}

.cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta__form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border: none;
  border-radius: 10px;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer__seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer__seo-links a {
  display: inline;
  font-size: 13px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

/* Gift banner */
.gift-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(90deg, var(--color-accent-light), #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}

.gift-banner__text h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--color-dark);
}

.gift-banner__text p {
  margin: 0;
  color: var(--color-muted);
}

/* Timing table */
.timing-table__wrap,
.content-table__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.content-table__wrap {
  margin: 1.75em 0;
  overflow: hidden;
}

.content-table__wrap:has(.content-table--wide) {
  overflow-x: auto;
  overflow-y: hidden;
}

.entry-content .wp-block-table:has(.content-table__wrap) {
  margin: 1.75em 0;
  border: none;
  overflow: visible;
}

.entry-content .wp-block-table .content-table__wrap {
  margin: 0;
}

.timing-table,
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.timing-table {
  min-width: 760px;
}

.timing-table thead th {
  padding: 14px 16px;
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.timing-table__head-type {
  text-align: left;
  min-width: 160px;
}

.timing-table__head-budget {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.timing-table__head-days {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-dark-soft);
}

.timing-table__head-budget + .timing-table__head-days {
  border-left: 2px solid var(--color-accent);
}

.timing-table__head-days span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: lowercase;
}

.timing-table tbody th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.timing-table tbody td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.timing-table tbody tr:hover th,
.timing-table tbody tr:hover td {
  background: var(--color-accent-light);
}

.timing-table tbody tr:last-child th,
.timing-table tbody tr:last-child td {
  border-bottom: none;
}

.timing-table__type {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
}

.timing-table__area {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.timing-table__muted {
  color: var(--color-muted);
  font-size: 13px;
}

.timing-table__price {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.timing-table__days {
  display: inline-block;
  min-width: 48px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-dark);
  background: var(--color-bg);
  border-radius: 100px;
}

.timing-table tbody td:nth-child(n + 4) .timing-table__days {
  background: var(--color-accent-light);
}

.timing-table__note {
  margin: 16px 0 0;
  padding-left: 14px;
  font-size: 13px;
  color: var(--color-muted);
  border-left: 3px solid var(--color-accent);
}

.nav.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link--inactive {
  pointer-events: none;
  cursor: default;
}

.btn.link--inactive:hover {
  border-color: var(--color-border);
  color: var(--color-dark);
  background: transparent;
}

.footer a.link--inactive:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__seo-links .link--inactive {
  display: inline;
}

.nav .menu-item {
  list-style: none;
  margin: 0;
}

/* Inner pages */
.section--inner {
  padding-top: 40px;
}

.inner-page {
  max-width: 860px;
}

.inner-page .content-table__wrap {
  max-width: none;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--color-border);
  font-weight: 400;
}

.breadcrumbs__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs__link:hover {
  color: var(--color-accent);
}

.breadcrumbs__current {
  color: var(--color-dark);
  font-weight: 600;
}

.breadcrumbs--yoast span span {
  display: inline;
}

.breadcrumbs--yoast a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs--yoast a:hover {
  color: var(--color-accent);
}

.breadcrumbs--yoast .breadcrumb_last {
  color: var(--color-dark);
  font-weight: 600;
}

/* Article content */
.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content p {
  margin: 0 0 1.15em;
}

.entry-content h2 {
  margin: 2em 0 0.75em;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
}

.entry-content h3 {
  margin: 1.75em 0 0.65em;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.3;
}

.entry-content h4 {
  margin: 1.5em 0 0.5em;
  font-size: 17px;
  line-height: 1.35;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
  list-style: revert;
}

.entry-content li + li {
  margin-top: 0.35em;
}

.entry-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--color-accent-hover);
}

.entry-content img {
  margin: 1.5em 0;
  border-radius: var(--radius);
}

/* Content tables (inner pages — same style as timing-table on homepage) */
.content-table {
  min-width: 0;
  line-height: 1.45;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

.content-table thead {
  background: var(--color-dark);
}

.content-table thead tr {
  background: var(--color-dark);
}

.content-table--wide {
  min-width: 640px;
}

.content-table th {
  padding: 14px 16px;
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border: none;
  box-shadow: none;
}

.content-table th:first-child {
  text-align: left;
  min-width: 140px;
  border-top-left-radius: calc(var(--radius-lg) - 1px);
}

.content-table th:last-child {
  border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.content-table--wide th:last-child {
  background: var(--color-dark-soft);
}

.content-table td {
  padding: 16px 14px;
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: none;
}

.content-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
}

.content-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}

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

.content-table tbody tr:hover td {
  background: var(--color-accent-light);
}

.content-table__price {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.content-table__highlight {
  font-weight: 600;
  color: var(--color-dark);
}

.content-table__badge {
  display: inline-block;
  min-width: 48px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-dark);
  background: var(--color-bg);
  border-radius: 100px;
  white-space: nowrap;
}

.content-table tbody tr:hover .content-table__badge {
  background: var(--color-accent-light);
}

/* Price lists (2 columns) */
.content-table--price td:first-child {
  text-align: left;
  font-weight: 400;
  color: var(--color-text);
}

.content-table--price td:last-child {
  text-align: center;
}

.content-table--price th:last-child {
  text-align: center;
}

/* Comparison / rating tables (3+ columns) */
.content-table--wide td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-dark);
}

.content-table--wide td:nth-child(2) {
  text-align: left;
  color: var(--color-muted);
  font-size: 13px;
}

.content-table--wide td:nth-child(3) {
  text-align: left;
}

.content-table--wide td:last-child {
  text-align: left;
}

/* Spec tables (2 columns, key-value, blog posts) */
.content-table--spec td {
  padding: 16px 18px;
  text-align: left;
}

.content-table--spec td:first-child {
  width: 42%;
  font-weight: 600;
  color: var(--color-dark);
}

.content-table--spec td:last-child {
  color: var(--color-text);
}

.content-table a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.content-table a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.entry-content table.content-table th,
.entry-content table.content-table td {
  border-left: none;
  border-right: none;
  border-top: none;
}

@media (max-width: 640px) {
  .section--inner {
    padding-top: 28px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .breadcrumbs__item:not(:last-child)::after {
    margin: 0 8px;
  }

  .content-table {
    min-width: 480px;
    font-size: 13px;
  }

  .content-table th,
  .content-table td {
    padding: 10px 12px;
  }
}
