/* ===== Local Fonts ===== */
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel_regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel_bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: rgba(245, 180, 210, 1);
  --pink-light: rgba(255, 231, 244, 1);
  --pink-gradient: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 50%, var(--pink) 100%);
  --dark: #363e3f;
  --black: #000000;
  --white: #ffffff;
  --gray: #eeeeee;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark);
  background: #dbdbdb;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--white);
  white-space: nowrap;
}

.btn--pink {
  background-image: var(--pink-gradient);
  color: var(--dark);
  border-color: var(--white);
}

.btn--pink:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn--hero-side {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 40px;
  padding: 18px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.btn--hero-side:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 5px;
}

.btn--dark:hover {
  background: #222;
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 14px 24px;
  font-size: 15px;
}

/* ===== Header ===== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 101;
}

.header__logo-icon {
  height: 120px;
  width: auto;
}

.header__logo-text {
  width: 100px;
  height: auto;
}

/* Hero sidebar phone */
.hero__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.hero__phone-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0);
}

/* Burger — fixed top-right corner */
.burger {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 10px;
  z-index: 200;
  transition: background 0.3s;
}

.burger:hover {
  background: rgba(0, 0, 0, 0.6);
}

.burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active {
  background: transparent;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav drawer — slides from right */
.header__nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  padding: 80px 36px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s;
  z-index: 150;
}

.header__nav.open {
  transform: translateX(0);
  visibility: visible;
}

/* Overlay behind drawer */
.header__nav::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
  pointer-events: none;
}

.header__nav.open::before {
  opacity: 1;
  pointer-events: auto;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header__nav-list a {
  font-size: 20px;
  color: var(--white);
  transition: opacity 0.2s, padding-left 0.2s;
}

.header__nav-list a:hover {
  opacity: 0.7;
  padding-left: 6px;
}

.header__nav-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.header__phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.header__nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.header__nav-buttons .btn {
  width: 100%;
}

.header__address {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero__logo {
  position: absolute;
  top: 37px;
  left: 20px;
  z-index: 10;
  transform: translateY(-50%);
}

.hero__logo-icon {
  height: 120px;
  width: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

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

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

.hero__text {
  flex: 1;
  max-width: 500px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(13px, 1.4vw, 15px);
  font-style: italic;
  margin-bottom: 32px;
}

.hero__cta {
  min-width: 260px;
}

.hero__image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35%;
  right: 340px;
  z-index: 1;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: none;
}

.hero__decor {
  position: absolute;
  bottom: 40px;
  left: -60px;
  z-index: 1;
  filter: brightness(1.5);
  pointer-events: none;
}

.hero__3d {
  width: 700px;
  max-width: none;
  opacity: 0.85;
}

.hero__sidebar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  background: rgba(200, 195, 195, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 30px;
}

.hero__gift {
  text-align: center;
}

.hero__gift-img {
  width: 90px;
  height: 90px;
  animation: wiggle 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-6deg) scale(1.06); }
  75% { transform: rotate(0deg) scale(1); }
}

.hero__gift-text {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 600;
  color: var(--dark);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero__gift-arrow {
  display: block;
  width: 80px;
  margin: 8px auto 0;
  opacity: 0.7;
  transform: rotate(180deg);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: calc(100% + 0px);
  height: 80px;
  margin-left: -180px;
}

.hero__social {
  display: flex;
  gap: 12px;
}

.hero__social img {
  width: 24px;
  height: 24px;
}

.hero__sidebar-cta {
  display: none;
}

.hero__icons {
  display: none;
}

.hero__icons-gift-hint {
  display: none;
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
}

.section--white {
  background: var(--white);
}

section.section--marble {
  background-image: url('../img/_3.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding-bottom: 24px;
}

.section--dark {
  background: #0f0f0f;
  color: var(--white);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  color: var(--dark);
}

.section__title--light {
  color: var(--white);
}

.cabinet .section__title,
.gallery .section__title,
#feedback .section__title,
#faq .section__title {
  font-size: clamp(28px, 3.5vw, 40px);
}

/* ===== About ===== */
.about {
  max-width: 1000px;
  margin: 0 auto;
}

.about__content {
  text-align: center;
  margin-bottom: 60px;
}

.about__content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about__content .btn {
  margin-top: 20px;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.about__feature {
  text-align: center;
  padding: 24px;
}

.about__feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.about__feature h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about__feature p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider__slide {
  flex: 0 0 100%;
  padding: 0 12px;
}

.slider__slide img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Multi-slide gallery */
.slider[data-per-view="3"] .slider__slide {
  flex: 0 0 33.333%;
}

.gallery .slider__slide img {
  height: 340px;
}

#feedback .slider__slide img {
  height: auto;
  object-fit: contain;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slider__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider__btn--prev {
  left: 8px;
}

.slider__btn--next {
  right: 8px;
}

/* ===== Marble fade edges for sections ===== */
.section--fade {
  position: relative;
  overflow: hidden;
}

.section--fade::before,
.section--fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 3;
  pointer-events: none;
  background-image: url('../img/_3.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.section--fade::before {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.section--fade::after {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

/* ===== Features section z-index (stays above photo) ===== */
.section--features {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

/* ===== Price photo ===== */
.price__photo-wrap {
  position: relative;
  width: 100%;
  height: clamp(340px, 36vw, 600px);
  overflow: hidden;
  margin-top: -40px;
  /* marble bg so image fades INTO the texture, not white */
  background-image: url('../img/_3.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  z-index: 1;
}

.price__photo-wrap > img:first-of-type {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 62%;
  z-index: 1;
  /* vignette mask — image fades out at all edges into the marble bg */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 30%, black 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 30%, black 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-composite: intersect;
}

/* gradient overlay divs — no longer needed (using mask instead) */
.price__fade-top,
.price__fade-bottom,
.price__fade-left,
.price__fade-right {
  display: none;
}

.price__photo-wrap::before {
  display: none;
}

/* legacy — unused */
.price__image {
  display: none;
}

/* ===== FAQ ===== */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(245, 180, 210, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq__item[open] {
  border-color: rgba(239, 81, 22, 0.2);
}

.faq__question {
  padding: 22px 28px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(239, 81, 22, 0.08);
  color: var(--pink);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq__item[open] .faq__question::after {
  content: '\00d7';
  transform: none;
  background: var(--pink);
  color: #fff;
}

.faq__answer {
  overflow: hidden;
  animation: faqOpen 0.35s ease;
}

@keyframes faqOpen {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 300px; }
}

.faq__answer p,
.faq__answer ul {
  padding: 0 28px 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #555;
}

.faq__answer ul {
  padding-left: 48px;
  list-style: disc;
}

.faq__answer li {
  margin-bottom: 8px;
}

/* ===== Contacts ===== */
.contacts {
  position: relative;
  margin: 0 -24px;
}

.contacts__map {
  width: 100%;
  min-height: 450px;
  background: #1a1a1a;
}

.contacts__info {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  z-index: 2;
  min-width: 280px;
}

.contacts__info p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.contacts__info p:last-child {
  margin-bottom: 0;
}

.contacts__info a {
  color: var(--white);
  transition: opacity 0.2s;
}

.contacts__info a:hover {
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  padding: 12px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .footer {
    padding: 8px 16px;
  }

  .footer__inner {
    gap: 16px;
  }

  .footer a {
    font-size: 11px;
  }
}

/* ===== Cookie Banner ===== */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 14px;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--pink);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.slider__slide img {
  cursor: zoom-in;
}

/* ===== Popup ===== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup.open {
  opacity: 1;
  visibility: visible;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.popup__container {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.popup__close:hover {
  background: rgba(0, 0, 0, 0.55);
}

.popup__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
}

.popup__content {
  padding: 24px 28px 28px;
}

.popup__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--dark);
}

.popup__descr {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #666;
}

.popup .form__input {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid #ddd;
}

.popup .form__input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(245, 180, 210, 0.25);
}

.popup .btn--dark {
  background-image: var(--pink-gradient);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 13px;
  transition: opacity 0.2s, transform 0.2s;
}

.popup .btn--dark:hover {
  background: var(--pink);
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== Form ===== */
.form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #c9c9c9;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form__input:focus {
  border-color: var(--pink);
}

.form__input::placeholder {
  color: #000;
  opacity: 0.5;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.form__checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}

.form__checkbox a {
  text-decoration: underline;
}

.form__error {
  color: #e53935;
  font-size: 13px;
  padding: 8px 0;
}

.form__success {
  text-align: center;
  font-size: 16px;
  padding: 20px;
  color: #2e7d32;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  background: #edb8d1;
  padding: 14px 0;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee-slide 28s linear infinite;
}

.marquee__item {
  padding: 0 40px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marquee__item::before {
  content: '•';
  margin-right: 40px;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Features Block ===== */
.features-block__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.features-block__heading {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.features-block__text {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 300;
  color: var(--dark);
}

.features-block__logo {
  width: 280px;
  display: block;
  margin: 0 auto;
}

.features-block__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.features-block__item:nth-child(2) { margin-left: 20px; }
.features-block__item:nth-child(3) { margin-left: 40px; }
.features-block__item:nth-child(4) { margin-left: 20px; }

.features-block__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.features-block__item-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  padding-top: 8px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  max-height: 500px;
}

.cta-banner img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.cta-banner__text {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 46px);
  color: var(--dark);
  max-width: 400px;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ===== Price Table ===== */
.price__header-img {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  width: 50%;
  z-index: 3;
}

.pricetable {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* last card spans full width if odd count */
.pricetable__card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 560px;
  justify-self: center;
  width: 100%;
  padding-bottom: 12px;
}

.pricetable__card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 32px 36px 28px;
  border: 1px solid rgba(245, 180, 210, 0.25);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricetable__card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.04);
}

.pricetable__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pink);
}

.pricetable__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--dark);
  border-bottom: 1px solid rgba(245, 180, 210, 0.15);
}

.pricetable__row:last-child {
  border-bottom: none;
}

/* dotted leader between name and price */
.pricetable__row span:first-child {
  flex: 1;
}

.pricetable__row span:last-child {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  margin-left: 12px;
  color: #1a1a1a;
}

/* ===== About Studio ===== */
.about-studio {
  background: url('../img/BG.jpg') center / cover no-repeat;
  overflow: hidden;
  position: relative;
}

/* marble fade-in at top edge */
.about-studio::before,
.about-studio::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  background-image: url('../img/_3.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.about-studio::before {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.about-studio::after {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

.about-studio__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 550px;
  grid-template-rows: auto 1fr;
  min-height: 570px;
  position: relative;
  z-index: 2;
}

/* photo spans the left side behind badges */
.about-studio__photo {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
}

.about-studio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* badges sit on top of the photo */
.about-studio__badges {
  grid-column: 1;
  grid-row: 1 / -1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 45px 0 45px 24px;
  align-self: start;
  max-width: 220px;
}

.about-studio__badge {
  position: relative;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

/* pill-shaped gray gradient card behind text */
.about-studio__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(to right, rgba(238, 238, 238, 1), rgba(238, 238, 238, 0));
  border: 1px solid #fff;
  z-index: -1;
}

.about-studio__badge strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-studio__badge span {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

/* right column: text + CTA */
.about-studio__content {
  grid-column: 2;
  grid-row: 2;
  padding: 60px 40px 40px 48px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.about-studio__title {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 60px 40px 24px 48px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 0;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.about-studio__content p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 28px;
  color: #000;
}

.about-studio__content .btn {
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ===== Cabinet photos ===== */
.cabinet__layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 500px;
}

/* left side: 2×2 staggered photo grid forming a square */
.cabinet__photos {
  display: grid;
  grid-template-columns: 260px 260px;
  grid-template-rows: 260px 260px;
  gap: 10px;
  position: relative;
}

.cabinet__photo {
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* top-left: landscape */
.cabinet__photo--1 {
  width: 260px;
  height: 200px;
  align-self: start;
  justify-self: start;
}

/* top-right: portrait */
.cabinet__photo--2 {
  width: 200px;
  height: 260px;
  align-self: start;
  justify-self: end;
}

/* bottom-left: portrait */
.cabinet__photo--3 {
  width: 200px;
  height: 260px;
  align-self: end;
  justify-self: start;
}

/* bottom-right: landscape */
.cabinet__photo--4 {
  width: 260px;
  height: 200px;
  align-self: end;
  justify-self: end;
}

/* PT logo at the center intersection */
.cabinet__pt-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  z-index: 2;
}

/* right side: phone mockup with video */
.cabinet__phone {
  position: relative;
  flex-shrink: 0;
}

/* frame image sets the container size */
.cabinet__phone-frame {
  display: block;
  width: 300px;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* clip wrapper matches the phone's screen area (pixel-measured) */
.cabinet__phone-screen-wrap {
  position: absolute;
  top: 1.5%;
  left: 16.5%;
  width: 57%;
  height: 72%;
  overflow: hidden;
  border-radius: 24px;
  z-index: 1;
}

/* video fills the clipped screen area */
.cabinet__phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsive additions ===== */
@media (max-width: 900px) {
  .features-block__inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 16px 20px;
  }

  .features-block__left {
    grid-column: 1 / -1;
    order: 1;
    text-align: left;
  }

  .features-block__heading {
    font-size: clamp(20px, 5vw, 26px);
    text-align: center;
    margin-bottom: 16px;
  }

  .features-block__text {
    font-size: 14px;
    line-height: 1.7;
  }

  .features-block__center {
    grid-column: 1;
    order: 2;
    align-self: center;
  }

  .features-block__logo {
    width: 110px;
  }

  .features-block__right {
    grid-column: 2;
    order: 3;
    align-self: center;
  }

  .features-block__item {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0 !important;
    margin-bottom: 12px;
    gap: 10px;
  }

  .features-block__item:nth-child(1) { padding-left: 0; }
  .features-block__item:nth-child(2) { padding-left: 16px; }
  .features-block__item:nth-child(3) { padding-left: 16px; }
  .features-block__item:nth-child(4) { padding-left: 0; }

  .features-block__icon {
    width: 42px;
    height: 42px;
  }

  .features-block__item-text {
    font-size: 13px;
    padding-top: 4px;
  }

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

  .section.about-studio {
    padding-top: 0px;
    padding-left: 0;
    padding-right: 0;
  }

  .about-studio__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    gap: 0;
  }

  .about-studio__badge::before {
    background: linear-gradient(to right, rgba(255, 255, 255, .92), rgba(255, 255, 255, .4));
    border-color: rgba(255, 255, 255, .7);
  }

  .about-studio__title {
    grid-column: 1;
    grid-row: 1;
    padding: 64px 16px 12px 16px;
    text-align: center;
    margin-bottom: 16px;
    font-size: 24px;
    z-index: 4;
  }

  .about-studio__photo {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    position: relative;
    pointer-events: none;
  }

  .about-studio__photo img {
    position: absolute;
    right: -30%;
    top: 0;
    width: 85%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-studio__badges {
    grid-column: 1;
    grid-row: 2;
    z-index: 2;
    max-width: fit-content;
    flex-direction: column;
    padding: 60px 0 20px 12px;
    gap: 14px;
    align-self: flex-start;
    background: none;
  }

  .about-studio__badge {
    font-size: 13px;
    padding: 12px 16px;
    max-width: 160px;
  }

  .about-studio__badge strong {
    font-size: 12px;
  }

  .about-studio__badge span {
    font-size: 11px;
  }

  .about-studio__content {
    grid-column: 1;
    grid-row: 3;
    border-left: none;
    padding: 32px 16px;
    text-align: center;
  }

  .about-studio__content .btn {
    min-width: auto;
    width: 100%;
    height: 50px;
  }

  .slider[data-per-view="3"] .slider__slide {
    flex: 0 0 100%;
  }

  .slider[data-per-view="3"] .slider__slide img {
    height: auto;
    max-height: 420px;
  }

  .cabinet__layout {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: auto;
  }

  .cabinet__photos {
    grid-template-columns: 180px 180px;
    grid-template-rows: 180px 180px;
  }

  .cabinet__photo--1 { width: 180px; height: 140px; }
  .cabinet__photo--2 { width: 140px; height: 180px; }
  .cabinet__photo--3 { width: 140px; height: 180px; }
  .cabinet__photo--4 { width: 180px; height: 140px; }

  .cabinet__phone-frame {
    width: 220px;
  }

  .cta-banner__text {
    right: 4%;
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .marquee__item {
    font-size: 15px;
  }

  .cabinet__photos {
    grid-template-columns: 140px 140px;
    grid-template-rows: 140px 140px;
  }

  .cabinet__photo--1 { width: 140px; height: 110px; }
  .cabinet__photo--2 { width: 110px; height: 140px; }
  .cabinet__photo--3 { width: 110px; height: 140px; }
  .cabinet__photo--4 { width: 140px; height: 110px; }

  .cabinet__pt-logo {
    width: 24px;
  }

  .pricetable__card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .pricetable__card:last-child:nth-child(odd) {
    max-width: none;
  }

  .pricetable__title {
    font-size: 16px;
  }

  .pricetable__row {
    font-size: 14px;
    padding: 8px 0;
  }

  .pricetable__row span:last-child {
    font-size: 15px;
  }

  .cta-banner__text {
    display: none;
  }
}

/* ===== Background parallax ===== */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: row;
    align-items: stretch;
  }

  .hero__image {
    position: absolute;
    left: 20%;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
  }

  .hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    max-height: none;
  }

  .hero__content {
    position: relative;
    width: 40%;
    flex-shrink: 0;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    padding: 90px 12px 180px 16px;
    margin: 0;
    z-index: 2;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(20px, 6.5vw, 28px);
  }

  .hero__subtitle {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .hero__cta {
    display: none;
  }

  .hero__sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    z-index: 3;
    background: linear-gradient(to top, rgba(255,255,255,0.45) 20%, transparent 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 20px;
    gap: 12px;
  }

  .hero__gift {
    display: none;
  }

  .hero__sidebar-cta {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    font-size: 13px;
    padding: 14px 20px;
  }

  .hero__buttons {
    display: none;
  }

  .hero__icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
  }

  .hero__icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: var(--dark);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .hero__icon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .hero__icon-link svg {
    width: 22px;
    height: 22px;
  }

  .hero__icons-wa-group {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .hero__icons-gift-hint {
    display: flex;
    align-items: center;
    pointer-events: none;
    margin-right: -8px;
  }

  .hero__icons-gift-img {
    width: 38px;
    height: 38px;
    animation: wiggle 3s ease-in-out infinite;
    filter: brightness(0) opacity(0.55);
  }

  .hero__icons-gift-arrow {
    display: block;
    width: 26px;
    height: auto;
    transform: rotate(90deg) scaleX(-1);
    margin: 0 -8px;
    filter: brightness(0) opacity(0.4);
  }

  .hero__decor {
    display: block;
    position: absolute;
    bottom: -40px;
    left: -120px;
    right: -120px;
    top: auto;
    z-index: 2;
    filter: brightness(0.72) sepia(0.4) hue-rotate(310deg) saturate(2.2);
    pointer-events: none;
  }

  .hero__3d {
    width: 100%;
    max-width: none;
    opacity: 0.85;
  }

  .section {
    padding: 48px 16px;
  }

  .section__title {
    margin-bottom: 32px;
  }

  .contacts {
    margin: 0 -16px;
  }

  .contacts__info {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -40px 16px 0;
    z-index: 2;
  }

  .contacts__map {
    min-height: 300px;
  }

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

  .faq__question {
    font-size: 15px;
    padding: 16px 20px;
  }

  .popup__container {
    border-radius: 18px;
    width: 94%;
  }

  .popup__image {
    height: 110px;
  }

  .popup__content {
    padding: 20px 20px 24px;
  }

  .popup__title {
    font-size: 19px;
  }

  .popup .form__fields {
    gap: 10px;
  }

  .popup .form__input {
    padding: 11px 12px;
  }
}

@media (max-width: 480px) {
  .about__features {
    grid-template-columns: 1fr;
  }

  .hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
