:root {
  --bg: #fbf7ef;
  --bg-soft: #fffaf3;
  --card: rgba(255, 253, 249, 0.92);
  --text: #241f1b;
  --muted: #766a5f;
  --accent: #8f6b4f;
  --accent-dark: #614431;
  --accent-light: #efe2d4;
  --green: #46675b;
  --line: rgba(97, 68, 49, 0.16);
  --shadow: 0 26px 70px rgba(60, 43, 32, 0.14);
  --shadow-soft: 0 16px 44px rgba(60, 43, 32, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(238, 218, 195, 0.9), transparent 420px),
    radial-gradient(circle at 92% 8%, rgba(207, 226, 211, 0.55), transparent 360px),
    linear-gradient(180deg, var(--bg) 0%, #fffdf8 48%, #f6ecdf 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 107, 79, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 107, 79, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(143, 107, 79, 0.1);
  color: var(--accent-dark);
  font-size: 0.9em;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(97, 68, 49, 0.12);
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(18px);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #9a7353, #5f8a77),
    var(--accent);
  color: white;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(97, 68, 49, 0.22);
}

.brand__text strong,
.brand__text small {
  display: block;
}

.brand__text strong {
  font-size: 17px;
  line-height: 1.05;
}

.brand__text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(97, 68, 49, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s ease;
}

.nav a:hover {
  background: rgba(143, 107, 79, 0.1);
  color: var(--accent-dark);
}

.header__phone {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(97, 68, 49, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  background: rgba(255, 253, 249, 0.72);
  white-space: nowrap;
}

/* Common */

.eyebrow {
  margin: 0 0 11px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  min-height: 54px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 38px rgba(143, 107, 79, 0.26);
}

.button--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 20px 44px rgba(97, 68, 49, 0.28);
}

.button--secondary {
  border: 1px solid rgba(97, 68, 49, 0.16);
  background: rgba(255, 253, 249, 0.84);
  color: var(--accent-dark);
}

.button--secondary:hover {
  background: #fff;
}

/* Hero */

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

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.76fr);
  gap: 46px;
  align-items: center;
}

.hero__content {
  position: relative;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 5.3vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero__text {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero__features {
  margin-top: 34px;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero__features div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(97, 68, 49, 0.14);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.75);
  box-shadow: 0 12px 30px rgba(60, 43, 32, 0.06);
}

.hero__features strong {
  display: block;
  color: var(--accent-dark);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero__features span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.hero-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(97, 68, 49, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(143, 107, 79, 0.32), rgba(95, 138, 119, 0.2), transparent 70%);
}

.specialist-slider {
  position: relative;
}

.specialist-slide {
  display: none;
}

.specialist-slide.is-active {
  display: block;
}

.specialist-card__photo {
  height: 250px;
  border-radius: 24px;
  overflow: hidden;
  background: #f3eadf;
}

.specialist-card__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.specialist-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(143, 107, 79, 0.1), rgba(95, 138, 119, 0.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.46) 0 12px, rgba(255,255,255,0.12) 12px 24px);
  color: rgba(97, 68, 49, 0.72);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.specialist-card__photo--placeholder span {
  padding: 12px 18px;
  border: 1px dashed rgba(97, 68, 49, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.56);
}

.specialist-card__body {
  padding: 22px 8px 6px;
}

.specialist-card__label {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.specialist-card__body h2 {
  margin: 0 0 11px;
  font-size: 29px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.specialist-card__body p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.58;
}

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

.specialist-card__body li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text);
  line-height: 1.3;
}

.specialist-card__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--green));
}

.specialist-slider__controls {
  padding: 4px 8px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.specialist-slider__button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(97, 68, 49, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.specialist-slider__button:hover {
  background: var(--accent-light);
}

.specialist-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.specialist-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(97, 68, 49, 0.24);
}

.specialist-slider__dot.is-active {
  width: 23px;
  background: var(--accent);
}

/* Sections */

.services-section {
  padding: 34px 0 42px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-head > p:not(.eyebrow) {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.section-head--compact {
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.services-loading {
  grid-column: 1 / -1;
  min-height: 160px;
  border: 1px dashed rgba(97, 68, 49, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.58);
}

.service-card {
  min-height: 472px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(97, 68, 49, 0.14);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(97, 68, 49, 0.24);
  box-shadow: 0 22px 54px rgba(60, 43, 32, 0.12);
}

.service-card__media {
  position: relative;
  height: 224px;
  flex: 0 0 224px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 244, 230, 0.96), rgba(239, 226, 212, 0.86));
}

.service-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.service-card__media.is-empty {
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 107, 79, 0.12), transparent 95px),
    radial-gradient(circle at 84% 26%, rgba(95, 138, 119, 0.11), transparent 95px),
    linear-gradient(135deg, #fbf2e8, #fff9f1);
}

.service-card__placeholder {
  display: none;
  padding: 12px 16px;
  border: 1px dashed rgba(97, 68, 49, 0.24);
  border-radius: 999px;
  color: rgba(97, 68, 49, 0.68);
  background: rgba(255, 253, 249, 0.58);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.service-card__media.is-empty .service-card__placeholder {
  display: inline-flex;
}

.service-card__content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__price {
  display: block;
  color: var(--accent-dark);
  font-size: 27px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.service-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.service-card__button {
  min-height: 46px;
  margin-top: auto;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.service-card__button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Trust */

.trust-section {
  padding: 26px 0 52px;
}

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

.trust-card {
  padding: 24px;
  border: 1px solid rgba(97, 68, 49, 0.14);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 14px 36px rgba(60, 43, 32, 0.06);
}

.trust-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.trust-card h3 {
  margin: 12px 0 9px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Review */

.review-section {
  padding: 2px 0 38px;
}

.review-cta {
  padding: 30px 34px;
  border: 1px solid rgba(97, 68, 49, 0.14);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(95, 138, 119, 0.14), transparent 180px),
    rgba(255, 253, 249, 0.85);
  box-shadow: var(--shadow-soft);
}

.review-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.review-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Map */

.map-section {
  padding: 0 0 82px;
}

.map-card {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(97, 68, 49, 0.14);
  border-radius: 30px;
  background: rgba(255, 253, 249, 0.84);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 21px;
}

/* Mobile call button */

.mobile-call-button {
  display: none;
}

/* Tablet */

@media (max-width: 920px) {
  .nav,
  .header__phone {
    display: none;
  }

  .hero {
    padding: 46px 0 38px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__text {
    font-size: 18px;
  }

  .hero-card {
    max-width: 620px;
  }

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

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .container {
    width: min(100% - 22px, 1120px);
  }

  .header__inner {
    min-height: 62px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 13px;
    font-size: 18px;
  }

  .brand__text strong {
    font-size: 14px;
  }

  .brand__text small {
    font-size: 11px;
  }

  .hero {
    padding: 28px 0 28px;
  }

  h1 {
    font-size: 34px;
    line-height: 1;
  }

  .hero__text {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.48;
  }

  .hero__actions {
    margin-top: 22px;
    flex-direction: column;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero__features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero__features div {
    min-height: 78px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero__features div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero__features strong {
    font-size: 19px;
  }

  .hero__features span {
    font-size: 12px;
  }

  .hero-card {
    padding: 12px;
    border-radius: 24px;
  }

  .specialist-card__photo {
    height: 188px;
    border-radius: 18px;
  }

  .specialist-card__body {
    padding: 17px 4px 5px;
  }

  .specialist-card__body h2 {
    font-size: 23px;
  }

  .specialist-card__body p {
    font-size: 14px;
    line-height: 1.45;
  }

  .specialist-card__body li {
    padding: 6px 0 6px 22px;
    font-size: 13px;
  }

  .specialist-slider__button {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .services-section {
    padding: 24px 0 32px;
  }

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

  .section-head h2 {
    font-size: 31px;
    line-height: 1.05;
  }

  .section-head > p:not(.eyebrow) {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.42;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 340px;
    border-radius: 19px;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card__media {
    height: 138px;
    flex-basis: 138px;
  }

  .service-card__placeholder {
    padding: 9px 11px;
    font-size: 11px;
  }

  .service-card__content {
    padding: 11px;
    gap: 6px;
  }

  .service-card__price {
    font-size: 18px;
    line-height: 1.05;
  }

  .service-card h3 {
    font-size: 13px;
    line-height: 1.16;
  }

  .service-card p {
    font-size: 11px;
    line-height: 1.28;
    -webkit-line-clamp: 3;
  }

  .service-card__button {
    min-height: 38px;
    border-radius: 12px;
    font-size: 12px;
  }

  .trust-section {
    padding: 14px 0 34px;
  }

  .trust-card {
    padding: 18px;
    border-radius: 22px;
  }

  .trust-card h3 {
    font-size: 20px;
  }

  .review-section {
    padding-bottom: 28px;
  }

  .review-cta {
    padding: 20px;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .map-section {
    padding-bottom: 48px;
  }

  .map-card {
    padding: 8px;
    border-radius: 22px;
  }

  .map-card iframe {
    height: 300px;
    border-radius: 16px;
  }

  .mobile-call-button {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    min-height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 34px rgba(97, 68, 49, 0.28);
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-call-button:active {
    background: var(--accent-dark);
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 31px;
  }

  .services-grid {
    gap: 8px;
  }

  .service-card {
    min-height: 322px;
  }

  .service-card__media {
    height: 122px;
    flex-basis: 122px;
  }

  .service-card__price {
    font-size: 17px;
  }

  .service-card h3 {
    font-size: 12px;
  }

  .service-card p {
    font-size: 10.5px;
  }
}

/* Убираем тёмное круглое пятно на первом экране */

.hero__content::after {
  display: none !important;
}
