/* ===== Variables ===== */
:root {
  --bg: #F3ECE4;
  --ink: #241913;
  --muted: #7C6A5E;
  --accent: #B08B6F;
  --accent2: #D98C8C;
  --accent2-ink: #6E3A2F;
  --card: #FFFBF4;
  --overlay: rgba(0, 0, 0, .48);
  --radius: 20px;
  --shadow: 0 10px 28px rgba(36, 25, 19, .12);
  --container: 1120px;
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 10% -20%, #FFFFFF 0%, var(--bg) 60%),
    radial-gradient(1200px 700px at 120% -30%, #FFF8F1 10%, var(--bg) 55%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px
}

.section {
  padding: 84px 0
}

.section-title {
  font-weight: 900;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 4.2vw, 36px);
  line-height: 1.15;
  color: var(--accent);
  letter-spacing: .01em;
  margin-bottom: 20px
}

.section-title.center {
  text-align: center
}

.eyebrow {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px
}

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

.center {
  text-align: center
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 1px solid transparent;
  user-select: none
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .18)
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35)
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12)
}

.btn-rose {
  background: var(--accent2);
  color: #fff;
  box-shadow: 0 12px 26px rgba(217, 140, 140, .28)
}

.btn-rose:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(217, 140, 140, .34)
}

.btn-ghost-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(36, 25, 19, .22)
}

.btn-ghost-ink:hover {
  background: rgba(36, 25, 19, .06)
}

/* ===== HERO + Carousel ===== */
.hero {
  position: relative;
  overflow: hidden;
  height: clamp(520px, 72vh, 760px);
  display: grid;
  place-items: center;
  isolation: isolate
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 70% at 30% 40%, rgba(255, 255, 255, .25), transparent 70%);
  z-index: 2;
  pointer-events: none
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: 0
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  animation: heroSlide 18s infinite ease-in-out;
  animation-fill-mode: both;
  will-change: opacity, transform;
}

.carousel-image:nth-child(1) {
  animation-delay: 0s
}

.carousel-image:nth-child(2) {
  animation-delay: 6s
}

.carousel-image:nth-child(3) {
  animation-delay: 12s
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.06)
  }

  5% {
    opacity: 1
  }

  30% {
    opacity: 1;
    transform: scale(1.12)
  }

  35% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px
}

.logo {
  width: min(160px, 38vw);
  height: min(160px, 38vw);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 clamp(52px, 10vw, 86px)/1 "Playfair Display", serif;
  color: #2d1d13;
  background: radial-gradient(circle, #fff 22%, #E5D7CB 100%);
  border: 2px solid #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28)
}

.hero-title {
  margin: 6px 0 8px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(24px, 6vw, 54px);
  line-height: 1.1;
  letter-spacing: .01em
}

.hero-title span {
  display: block;
  margin-top: 6px;
  font: 600 12px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9
}

.hero-cta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center
}

/* ===== Nav (без правок HTML) ===== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font: 700 12px/1 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  transition: color .25s, transform .25s
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent2);
  transition: width .25s
}

.main-nav a:hover {
  color: var(--accent2);
  transform: translateY(-1px)
}

.main-nav a:hover::after {
  width: 100%
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center
}

.about-photo img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  display: block
}

.about-text p {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.8
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px
}

.badge {
  background: #fff;
  border: 1px solid rgba(36, 25, 19, .08);
  color: #2A1A12;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06)
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin-inline: auto
}

.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  border: 1px solid rgba(176, 139, 111, .22)
}

.card-title {
  font: 700 22px/1.2 "Playfair Display", serif;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(176, 139, 111, .35)
}

.price-list {
  list-style: none
}

.price-item {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(176, 139, 111, .25)
}

.price-item:last-child {
  border-bottom: 1px solid rgba(176, 139, 111, .25)
}

.price-item span {
  font-size: 16.5px
}

.price-item b {
  font: 600 14px/1 Inter, sans-serif;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum"
}

/* ===== COURSE ===== */
.course-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
  max-width: 980px;
  margin-inline: auto
}

.course-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  border: 1px solid rgba(176, 139, 111, .22)
}

.course-chip {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px
}

.course-card h3 {
  font: 700 22px/1.2 "Playfair Display", serif;
  color: var(--accent2-ink);
  margin-bottom: 10px
}

.course-list {
  list-style: none;
  margin: 6px 0 14px
}

.course-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(110, 58, 47, .2)
}

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

.course-side {
  display: grid;
  gap: 10px
}

.course-side .bullet {
  background: #fff;
  border: 1px solid rgba(110, 58, 47, .12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow)
}

.course-side .bullet b {
  display: block;
  font: 700 18px/1.25 "Playfair Display", serif;
  margin-bottom: 6px;
  color: var(--ink)
}

.course-side .bullet p {
  color: var(--muted)
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px
}

.g-item {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  transition: transform .25s, box-shadow .25s
}

.g-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14)
}

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

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

.lightbox .lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  text-decoration: none
}

.lightbox:target {
  display: flex
}

/* ===== PROCESS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.step {
  background: #fff;
  border: 1px solid rgba(36, 25, 19, .08);
  border-radius: 16px;
  padding: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow)
}

.step b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent2);
  color: #fff;
  font-weight: 800
}

/* ===== CONTACT ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 18px;
  align-items: stretch
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, background .25s
}

.contact-card:hover {
  transform: translateY(-2px);
  background: #fff8f0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12)
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px
}

.contact-card p {
  font-size: 16px
}

.contact-card a {
  color: inherit;
  text-decoration: none;
  font-weight: 700
}

.contact-card a:hover {
  color: var(--accent2)
}

.map-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center
}

.map-wrap iframe {
  width: 100%;
  max-width: 980px;
  height: 380px;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 32px 0;
  color: rgba(36, 25, 19, .75)
}

/* ===== Responsive ===== */

/* ≤1200 */
@media (max-width:1200px) {

  .pricing-grid,
  .course-grid {
    max-width: 880px
  }
}

/* ≤1024 (планшеты) */
@media (max-width:1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .about-photo {
    order: 2;
    text-align: center
  }

  .pricing-grid {
    grid-template-columns: 1fr
  }

  .steps {
    grid-template-columns: repeat(2, 1fr)
  }

  .course-grid {
    grid-template-columns: 1fr
  }

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

/* ≤820 (большие телефоны/мал. планшеты) */
@media (max-width:820px) {
  .section {
    padding: 64px 0
  }

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

  .map-wrap iframe {
    height: 340px
  }
}

/* ≤680 (телефоны) */
@media (max-width:680px) {
  .hero {
    height: clamp(440px, 68vh, 680px)
  }

  /* Навигация: превращаем в горизонтальную прокрутку-пилюли */
  .main-nav ul {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 8px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .main-nav li {
    flex: 0 0 auto;
    scroll-snap-align: center
  }

  .main-nav a {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 12px 14px;
    border-radius: 999px;
  }

  .main-nav a::after {
    display: none
  }

  .hero-cta .btn {
    padding: 12px 16px
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .steps {
    grid-template-columns: 1fr
  }

  .contact-cards {
    grid-template-columns: 1fr
  }

  .map-wrap iframe {
    height: 320px;
    border-radius: 14px
  }
}

/* ≤480 (маленькие телефоны) */
@media (max-width:480px) {
  .container {
    padding-inline: 16px
  }

  .section {
    padding: 52px 0
  }

  .hero-title span {
    font-size: 11px;
    letter-spacing: .16em
  }

  .price-item {
    padding: 10px 0
  }

  .price-item span {
    font-size: 15.5px
  }

  .card {
    padding: 18px 16px
  }

  .course-card,
  .course-side .bullet {
    padding: 16px
  }

  .g-item {
    border-radius: 12px
  }
}

/* ≤380 (очень узкие) */
@media (max-width:380px) {
  .hero {
    height: min(420px, 70vh)
  }

  .gallery-grid {
    grid-template-columns: 1fr
  }

  .hero-cta {
    gap: 8px
  }

  .btn {
    padding: 11px 14px
  }
}

/* ===== Motion & A11y ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto
  }

  .carousel-image {
    opacity: 0;
    transform: none
  }

  /* показываем ТОЛЬКО 1-е фото */
  .carousel-image:first-child {
    opacity: 1
  }
}

a,
button,
[role="button"] {
  min-height: 44px;
  min-width: 44px
}
/* ===== Mobile nav: показываем только ключевые пункты ===== */

/* ≤680px: показываем 3 пункта — Služby, Portfolio, Kontakt */
@media (max-width:680px) {
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 8px 6px;
    margin-top: 8px;
  }

  .main-nav li {
    display: none;
  }

  /* скрыть всё по умолчанию */
  .main-nav li:nth-child(2),
  .main-nav li:nth-child(4),
  .main-nav li:nth-child(5) {
    display: block;
  }

  /* Služby, Portfolio, Kontakt */

  .main-nav a {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 12px 14px;
    border-radius: 999px;
    letter-spacing: .12em;
  }

  .main-nav a::after {
    display: none;
  }

  /* убираем нижнее подчёркивание */
}

/* ≤380px: ещё компактнее — оставляем только 2 пункта (Služby, Kontakt) */
@media (max-width:380px) {
  .main-nav li {
    display: none;
  }

  .main-nav li:nth-child(2),
  .main-nav li:nth-child(5) {
    display: block;
  }

  /* Služby, Kontakt */
}