/* ===========================
   DUMBRA — Роспись по стеклу
   styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5f0e8;
  --cream-dark: #ede6d8;
  --rose: #c4897a;
  --rose-light: #d9a99c;
  --rose-dark: #a86d5e;
  --brown: #3d2b24;
  --brown-light: #6b4c43;
  --muted: #8a7870;
  --white: #ffffff;
  --border: rgba(61, 43, 36, 0.12);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--brown);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   UTILITY
   =========================== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--cream-dark);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--rose);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 137, 122, 0.35);
}

.btn--secondary {
  background-color: transparent;
  color: var(--brown);
  border: 1.5px solid var(--border);
}

.btn--secondary:hover {
  background-color: rgba(61, 43, 36, 0.05);
  transform: translateY(-1px);
}

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

/* ===========================
   NAVIGATION
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background-color: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-light);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--rose);
}

.nav__cta {
  background-color: var(--rose);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover {
  background-color: var(--rose-dark) !important;
  color: var(--white) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown);
  transition: var(--transition);
  border-radius: 2px;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--cream);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav__mobile a:last-child {
  border-bottom: none;
  color: var(--rose);
  padding-top: 16px;
}

.nav__mobile a:hover {
  color: var(--rose);
}

/* ===========================
   HERO
   =========================== */

.hero {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-glass-painting.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 18, 14, 0.72) 0%,
    rgba(30, 18, 14, 0.38) 60%,
    rgba(30, 18, 14, 0.10) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 80px;
}

.hero__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
  border: 1px solid rgba(217, 169, 156, 0.4);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--rose-light);
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__actions .btn--secondary {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.hero__actions .btn--secondary:hover {
  background-color: rgba(255,255,255,0.08);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   FOR WHOM
   =========================== */

.forwho__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.forwho__card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.forwho__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 43, 36, 0.08);
}

.forwho__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(196, 137, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.forwho__card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--brown);
}

.forwho__card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   SHOWCASE
   =========================== */

.showcase__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.showcase__layout--reverse {
  direction: rtl;
}

.showcase__layout--reverse > * {
  direction: ltr;
}

.showcase__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.showcase__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase__img:hover img {
  transform: scale(1.03);
}

.showcase__text .section-label {
  margin-bottom: 12px;
}

.showcase__list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.5;
}

.showcase__list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background-color: rgba(196, 137, 122, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23c4897a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ===========================
   PROCESS
   =========================== */

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 56px;
  counter-reset: steps;
}

.process__step {
  counter-increment: steps;
  position: relative;
  padding-top: 48px;
}

.process__step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--rose);
  opacity: 0.6;
  line-height: 1;
}

.process__step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--brown);
}

.process__step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===========================
   RESULTS GALLERY
   =========================== */

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

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* ===========================
   LEAD FORM
   =========================== */

.form-section {
  background-color: var(--brown);
  padding: 96px 0;
}

.form-section .section-title {
  color: var(--white);
}

.form-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.form-section .section-label {
  color: var(--rose-light);
}

.form__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.form__text .section-title,
.form__text .section-subtitle {
  max-width: 420px;
}

.form__features {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.form__features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-color: rgba(196, 137, 122, 0.2);
  color: var(--rose-light);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.form__card {
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-light);
}

.form__field input {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--brown);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form__field input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form__field input:focus {
  border-color: var(--rose);
}

.form__field input.error {
  border-color: #c0392b;
}

.form__error-msg {
  font-size: 12px;
  color: #c0392b;
  display: none;
}

.form__agree {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.form__agree a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 16px;
}

.form__success.visible {
  display: flex;
}

.form__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(196, 137, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.form__success h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brown);
}

.form__success p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 300px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background-color: #2a1e1a;
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 13px;
  line-height: 1.65;
}

.footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__col ul a:hover {
  color: var(--rose-light);
}

.footer__bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal {
  line-height: 1.7;
}

.footer__legal p {
  font-size: 12px;
}

/* ===========================
   COOKIE BANNER
   =========================== */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 200;
  background-color: #2a1e1a;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  min-width: 240px;
}

.cookie-banner a {
  color: var(--rose-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}

.cookie-btn--accept {
  background-color: var(--rose);
  color: var(--white);
}

.cookie-btn--accept:hover {
  background-color: var(--rose-dark);
}

.cookie-btn--decline {
  background-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.cookie-btn--decline:hover {
  background-color: rgba(255,255,255,0.12);
}

/* ===========================
   LEGAL PAGES
   =========================== */

.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 40px;
  line-height: 1.2;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brown);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.65;
}

.legal-content strong {
  color: var(--brown);
  font-weight: 600;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 40px;
  transition: gap var(--transition);
}

.legal-back:hover {
  gap: 12px;
}

/* ===========================
   SUCCESS PAGE
   =========================== */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.success-page__inner {
  max-width: 480px;
}

.success-page__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(196, 137, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 36px;
}

.success-page h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.2;
}

.success-page p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ===========================
   ANIMATIONS
   =========================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .showcase__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase__layout--reverse {
    direction: ltr;
  }
  .form__wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .hero__title {
    font-size: 2.4rem;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }
  .footer__links {
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px 20px;
  }
  .form__card {
    padding: 28px 20px;
  }
}
