:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #676767;
  --accent: #6c7c5d;
  --accent-dark: #536148;
  --accent-soft: #ece7dd;
  --line: #e7dfd5;
  --danger: #d54b4b;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --container: 1220px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.85), transparent 28%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 100%);
  line-height: 1.55;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.section {
  padding: 74px 0;
}

.city-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 244, 239, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.city-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.city-modal {
  width: min(520px, 100%);
  background: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}

.city-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 auto 18px;
}

.city-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
}

.city-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.city-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.city-btn {
  min-height: 56px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 12px 20px rgba(108, 124, 93, 0.22);
}

.city-btn:hover {
  transform: translateY(-2px);
}

.top-contacts {
  background: linear-gradient(135deg, #5e6d51 0%, #738464 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.top-contacts-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.top-contacts-left,
.top-contacts-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.top-contacts a {
  color: #fff;
  font-weight: 700;
  opacity: 0.95;
}

.top-contacts a:hover {
  opacity: 1;
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.header-city-switch {
  margin-left: auto;
}

.city-switch-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-soft);
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

.sale {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 700;
  margin-right: 8px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-main-title {
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.hero-city-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 780px;
}

.muted {
  color: var(--muted);
}

.hero-grid,
.info-grid,
.gift-layout,
.master-grid,
.contact-layout {
  display: grid;
  gap: 26px;
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.hero-content-card,
.hero-photo-card,
.text-card,
.vertical-card,
.gift-image-card,
.gift-text-card,
.master-photo-card,
.master-text-card,
.review-form-card,
.contact-card,
.map-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-content-card {
  padding: 34px;
}

.hero-points,
.master-features {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

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

.point {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f8f5f0 100%);
  border: 1px solid var(--line);
}

.point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.point span {
  color: var(--muted);
  font-size: 15px;
}

.hero-photo-card img,
.master-photo-card img,
.vertical-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.info-grid {
  grid-template-columns: 1.14fr 0.86fr;
}

.text-card {
  padding: 32px;
  display: grid;
  gap: 18px;
  font-size: 20px;
}

.vertical-card-body,
.gift-text-card,
.master-text-card,
.contact-card,
.review-form-card {
  padding: 28px;
}

.vertical-card-body {
  display: grid;
  gap: 16px;
  font-size: 18px;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
}

.service-card p {
  color: var(--muted);
}

.service-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #ddd;
}

.service-price-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.service-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f7f4ef 100%);
  border: 1px solid var(--line);
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
}

.action-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #fff;
  border-color: transparent;
}

.gift-layout {
  grid-template-columns: 1fr 1.08fr;
}

.gift-image-card img {
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
}

.master-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.master-text-card {
  display: grid;
  gap: 16px;
}

.master-quote {
  font-size: 20px;
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1.45;
}

.slider-block {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 14px;
  align-items: center;
}

.slider-window {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.slider-track::-webkit-scrollbar {
  height: 8px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: #d9d1c5;
  border-radius: 999px;
}

.slider-item {
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
}

.slider-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #dddddd;
  cursor: pointer;
}

.slider-btn {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  font-size: 28px;
  cursor: pointer;
}

.review-form-card {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.tally-review-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.tally-review-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
}

.results-text {
  margin-top: 24px;
}

.result-question {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 22px;
}

.contact-section {
  padding-bottom: 110px;
}

.contact-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-card {
  display: grid;
  gap: 16px;
}

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

.contact-item {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f7f4ef 100%);
  border: 1px solid var(--line);
}

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

.yandex-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #fff;
  font-weight: 700;
  width: fit-content;
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.map-placeholder {
  padding: 34px;
  text-align: center;
}

.map-placeholder h3 {
  margin-bottom: 12px;
}

.map-placeholder p {
  margin-bottom: 18px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #ffffff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: min(1000px, 100%);
  max-height: 90vh;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.sticky-actions {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 20px));
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  z-index: 90;
}

.sticky-actions a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #f3eee6;
}

.sticky-actions a.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.footer {
  padding: 24px 0 120px;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.community-strip {
  padding: 14px 0 0;
}

.community-strip-inner,
.community-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.community-strip-inner {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.community-strip-text {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
}

.community-inline-links,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-card {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.community-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #7f9170 100%);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.community-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1100px) {
  .hero-grid,
  .info-grid,
  .gift-layout,
  .master-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .slider-item {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 920px) {
  .header-city-switch {
    display: block !important;
    order: 3;
    width: 100%;
    margin-top: 8px;
    margin-left: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .city-switch-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    z-index: 65;
  }

  .nav.open {
    display: flex;
  }

  .hero-points,
  .master-features,
  .community-strip-inner {
    grid-template-columns: 1fr;
  }

  .slider-block {
    grid-template-columns: 52px 1fr 52px;
  }

  .slider-item {
    flex: 0 0 calc(50% - 8px);
  }

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

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

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

  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .section {
    padding: 56px 0;
  }

  .top-contacts {
    font-size: 12px;
  }

  .top-contacts-inner {
    gap: 8px;
    justify-content: center;
  }

  .top-contacts-left,
  .top-contacts-right {
    justify-content: center;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero-content-card,
  .text-card,
  .vertical-card-body,
  .gift-text-card,
  .master-text-card,
  .review-form-card,
  .contact-card,
  .community-strip-inner,
  .community-card {
    padding: 18px;
  }

  .card-actions,
  .community-inline-links,
  .community-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action-btn,
  .community-btn {
    min-height: 36px;
    font-size: 12px;
    padding: 0 8px;
    width: 100%;
  }

  .slider-block {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }

  .slider-item {
    flex: 0 0 82%;
  }

  .sticky-actions {
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    bottom: 10px;
    padding: 8px;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
  }

  .sticky-actions a.primary {
    grid-column: 1 / -1;
    justify-self: center;
    width: 70%;
    max-width: 240px;
  }

  .sticky-actions a {
    min-height: 38px;
    font-size: 11px;
    padding: 0 4px;
  }

  .footer {
    padding-bottom: 120px;
  }

  .city-buttons {
    grid-template-columns: 1fr;
  }

  #reviews {
    margin-top: 40px;
  }

  #reviews::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 999px;
    margin: 0 auto 20px;
  }

  #offer .text-card p,
  #gift .gift-text-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  #offer .text-card h2,
  #gift .gift-text-card h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  #results .text-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .result-question {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
  }
}

.city-switch-btn:hover {
  background: #f3eee6;
}

#offer .text-card p,
#gift .gift-text-card p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: var(--text) !important;
}

#reviews {
  margin-top: 40px;
}

#reviews::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 auto 20px;
}


/* Desktop/community visibility fix */
.community-inline-links,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.community-inline-links .community-btn,
.community-actions .community-btn {
  flex: 0 0 auto;
  width: auto;
}

@media (min-width: 921px) {
  .community-strip-inner {
    grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.4fr);
  }
}

/* Final fixes: community text, mobile spacing, one Telegram by city */
.community-card p,
.community-strip-text {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
}

@media (max-width: 640px) {
  .community-strip-text,
  .community-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
  }

  /* remove blank mobile spaces from reveal animation placeholders */
  .reveal,
  .reveal-delay-1 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero.section {
    padding-top: 12px;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero-photo-card {
    margin-bottom: 0;
  }

  .community-strip {
    padding-top: 10px;
  }
}


/* Community text: same visual style as hero lead */
.community-copy {
  font-size: clamp(17px, 2vw, 21px) !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  max-width: 780px;
}

.community-card-text {
  margin: 0;
}

.community-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.community-strip-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 920px) {
  .community-strip-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .community-copy {
    font-size: clamp(17px, 2vw, 21px) !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
  }

  .community-inline-links,
  .community-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .community-btn {
    display: inline-flex !important;
  }
}
