:root {
  --primary: #c9a03e;
  --primary-hover: #b8892a;
  --bg-color: #f7f7f7;
  --text: #1a1a1a;
  --text-light: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', serif;
  background-color: var(--bg-color);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/oblojka.png') center/cover no-repeat;
  filter: grayscale(80%) brightness(0.65);
  transform: scale(1.05);
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 650px;
  padding: 2rem;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
}

/* CATALOG */
.catalog {
  padding: 6rem 1.5rem;
  background: #fff;
  text-align: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eaeaea;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card__img img {
  transform: scale(1.05);
}
.card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.card:hover .card__overlay {
  opacity: 1;
}
.card__content {
  padding: 1.8rem;
}
.card__title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}
.card__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}
.card__price {
  margin-top: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

/* Тёмная карточка V5 */
.card__img--dark {
  background: radial-gradient(ellipse at 50% 45%, #2a1f0e, #0a0704);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__img-decor {
  width: 60%;
  opacity: 0.9;
  transition: transform 0.6s ease;
}
.card:hover .card__img-decor {
  transform: scale(1.06);
}

.card__btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.65rem 2rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease;
}
.card:hover .card__btn {
  background: var(--primary);
  color: #fff;
}

/* CTA */
.cta {
  background: var(--bg-color);
  padding: 6rem 1.5rem;
  text-align: center;
}
.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1rem; }
.cta p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  background: #fff;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #e8c96e 50%, var(--primary) 100%);
  background-size: 200% 200%;
  color: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(201,160,62,0.3);
}
.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,160,62,0.4);
}
.btn-full { width: 100%; margin-top: 1rem; }

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #fff;
  color: #1a1a1a;
}

/* DISCOUNT HINT */
.discount-hint {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.discount-hint strong {
  color: #f0d070;
  font-weight: 600;
}

/* HERO INLINE FORM */
.hero-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}
.hero-form input[type="tel"] {
  flex: 1 1 220px;
  max-width: 280px;
  padding: 1rem 1.2rem;
  font-family: inherit;
  font-size: 1.15rem;
  border: none;
  border-radius: 4px;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-form input[type="tel"]::placeholder { color: #aaa; }
.hero-form input[type="tel"]:focus {
  background: #fff;
  box-shadow: 0 4px 20px rgba(201,160,62,0.3);
}

.cta .hero-form input[type="tel"] {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.hero-success {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 1rem 1.8rem;
  color: #fff;
  font-size: 1.15rem;
}
.hero-success--dark {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: var(--text);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
  padding: 0.5rem;
}
.modal__close:hover { color: #1a1a1a; }
.modal__title { font-size: 2.2rem; margin-bottom: 0.5rem; color: #1a1a1a; }
.modal__desc { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }

/* FORM */
.input-group {
  text-align: left;
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #333;
}
.input-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: inherit;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  background: #fafafa;
  transition: all 0.3s;
}
.input-group input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,160,62,0.1);
}

.success-icon {
  margin: 0 auto 1.5rem;
  width: 72px;
  height: 72px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
