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

:root {
  --cream: #fff7f2;
  --dark: #1e1410;
  --rose: #c07668;
  --rose-light: #ead2c8;
  --muted: #7a5e58;
  --card-bg: #ffffff;
  --border: rgba(42,29,26,.08);
  --shadow-sm: 0 4px 24px rgba(90,54,44,.08);
  --shadow-md: 0 16px 60px rgba(90,54,44,.12);
  --shadow-lg: 0 40px 120px rgba(90,54,44,.18);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 44px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

main,
header,
section,
footer {
  max-width: 100%;
}

body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-140%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(192,118,104,.35);
  outline-offset: 2px;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  transition: padding .4s, background .4s, box-shadow .4s;
}

header.scrolled {
  padding: 14px 5vw;
  background: rgba(255,247,242,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width .3s;
}

nav a:hover { color: var(--dark); }
nav a:hover::after { width: 100%; }
nav a:focus-visible::after { width: 100%; }

/* ── Buttons ── */
.pill, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 26px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover, .pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30,20,16,.22);
}

.button:active { transform: translateY(0); }

.secondary {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(42,29,26,.18);
}

.secondary:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color .25s, gap .25s;
}

.link-arrow:hover { color: var(--dark); gap: 10px; }

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

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

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

/* ── Mobile Nav ── */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s, visibility .35s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  transition: color .2s;
}

.mobile-nav a:hover { color: var(--rose); }
.mobile-nav .button { font-family: Inter, sans-serif; font-size: 16px; }

/* ── Labels ── */
.label, .title span, .result-text span, .contacts span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 16px;
}

/* ── Typography ── */
h1, h2 {
  font-family: 'Playfair Display', serif;
  line-height: .95;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(52px, 7.5vw, 108px);
  color: var(--dark);
}

h1 em {
  font-style: italic;
  color: var(--rose);
}

h2 { font-size: clamp(36px, 5vw, 68px); }

p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

/* ── Hero ── */
.hero {
  width: min(1200px, 90vw);
  margin: auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,118,104,.18) 0%, transparent 70%);
  pointer-events: none;
  transition: transform .1s linear;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}

.hero-text p {
  max-width: 520px;
  margin: 28px 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 460px;
  height: 580px;
  border-radius: var(--radius-lg);
  background: var(--rose-light);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.5deg);
  transition: transform .4s;
  position: relative;
  overflow: visible;
}

.hero-card:hover { transform: rotate(0deg) scale(1.01); }

.photo {
  height: 100%;
  border-radius: 32px;
  background: url('../images/work-5.jpeg') center/cover;
}

.float-badge {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: 28px;
  left: -36px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 60px;
  right: -36px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation-delay: 2s;
}

.float-badge span { font-size: 13px; font-weight: 600; color: var(--muted); }
.badge-2 b { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--dark); line-height: 1.1; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--rose-light);
  opacity: .5;
}

.dot-1 { width: 120px; height: 120px; bottom: -20px; left: -40px; }
.dot-2 { width: 60px; height: 60px; top: 40px; right: -20px; background: var(--rose); opacity: .15; }

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--card-bg);
  margin: 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  padding: 0 20px;
  white-space: nowrap;
}

.marquee-track .dot {
  color: var(--rose);
  padding: 0 4px;
}

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

/* ── Benefits ── */
.benefits {
  width: min(1200px, 90vw);
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-item b {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--rose-light);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

.benefit-item span {
  display: block;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--dark);
}

.benefit-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* ── Section ── */
.section {
  width: min(1200px, 90vw);
  margin: auto;
  padding: 80px 0;
}

.title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition-delay: calc(var(--i) * .08s);
}

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

.card-icon {
  font-size: 32px;
  line-height: 1;
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

.card p {
  font-size: 15px;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose);
  margin-top: 8px;
  transition: gap .2s;
  display: inline-block;
}

.card-link:hover { letter-spacing: .02em; }

/* ── Result ── */
.result {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.result-photo {
  min-height: 580px;
  border-radius: var(--radius-lg);
  background: url('../images/work-6.jpeg') center 18%/cover;
  box-shadow: var(--shadow-lg);
  transition: transform .4s;
}

.result-photo:hover { transform: scale(1.01); }

.result-text span { display: block; }

.result-text h2 { margin: 0 0 20px; }

ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--muted);
}

ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portfolio-block {
  margin-top: 34px;
}

.portfolio-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.portfolio-note {
  margin-top: 10px;
  max-width: 760px;
}

.portfolio-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  background: #f3e9e3;
  transition: transform .3s, box-shadow .3s;
  transition-delay: calc(var(--i) * .07s);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio-item:hover img { transform: scale(1.04); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.product-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  background: #ffffff;
  transition: transform .3s, box-shadow .3s;
  transition-delay: calc(var(--i) * .07s);
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-item:hover img { transform: scale(1.03); }

/* ── Price ── */
.price-note {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--muted);
}

.price-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.price-item:last-child { border-bottom: 0; }
.price-item:hover { background: var(--cream); }

.price-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}

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

/* ── Mood ── */
.mood {
  background: var(--dark);
  color: #fff;
  width: 100%;
  max-width: none;
  padding: 100px 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mood::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(192,118,104,.2) 0%, transparent 60%);
}

.mood-inner { position: relative; max-width: 900px; margin: auto; }

.mood-quote {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  line-height: .6;
  color: var(--rose);
  opacity: .4;
  margin-bottom: 16px;
}

.mood h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  font-style: italic;
}

.mood-author {
  margin-top: 28px;
  font-size: 15px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ── Contacts ── */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts span { display: block; }
.contacts h2 { margin: 0 0 16px; }

.contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.contacts form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.form-group { position: relative; }

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

input {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--dark);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}

input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(192,118,104,.12);
}

input:user-invalid {
  border-color: #b54a4a;
  box-shadow: 0 0 0 4px rgba(181,74,74,.12);
}

input::placeholder { color: rgba(122,94,88,.5); }

.form-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 5vw;
}

.footer-inner {
  width: min(1200px, 90vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer p { font-size: 14px; }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-glow,
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav, .pill { display: none; }
  .burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 120px 0 60px;
    gap: 48px;
    width: calc(100vw - 32px);
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero .label {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-visual { overflow: hidden; }
  .hero-card {
    height: 420px;
    max-width: 100%;
    transform: none;
    overflow: hidden;
  }
  .hero-glow, .hero-dot { display: none; }
  .badge-1 { left: 12px; max-width: calc(100% - 24px); }
  .badge-2 { right: 12px; max-width: calc(100% - 24px); }

  .benefits { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .result {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .result-photo { min-height: 360px; }

  .contacts {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .title { display: block; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .label,
  .title span,
  .result-text span,
  .contacts span {
    letter-spacing: .14em;
  }
  h1 {
    font-size: clamp(40px, 13vw, 52px);
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-buttons { flex-direction: column; }
  .contact-buttons .button { width: 100%; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
