/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

/* === TOKENS === */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;

  --primary: #2B7FD4;
  --primary-dark: #1A5FA0;
  --primary-light: #EBF4FF;
  --accent: #FF6B6B;
  --accent-dark: #E04F4F;
  --bg: #F0F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F2FB;
  --ink: #1A2B3C;
  --ink-mute: #5A7080;
  --border: #C8DFF0;
  --gold: #F5A623;
}

/* === BASE === */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--s-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--s-8); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn--sm {
  padding: var(--s-2) var(--s-4);
  font-size: 14px;
}

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

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--s-4);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  transition: color 0.2s;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--s-2);
}

.nav__link:hover { color: var(--primary); }

.nav__link--cta {
  background: var(--primary);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: 50px;
}

.nav__link--cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--s-2);
}

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

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

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--s-4) var(--s-6);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  .nav__link {
    font-size: 16px;
    padding: var(--s-3) var(--s-2);
    width: 100%;
  }

  .nav__link--cta {
    display: inline-flex;
    margin-top: var(--s-2);
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,43,60,0.72) 0%, rgba(43,127,212,0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s-3);
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--s-4);
  line-height: 1.05;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--s-8);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* === BENEFITS === */
.benefits {
  background: var(--primary);
  padding: var(--s-8) 0;
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-6);
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
  color: #fff;
}

.benefit-item__icon {
  font-size: 36px;
  line-height: 1;
}

.benefit-item strong {
  font-size: 15px;
  font-weight: 600;
}

.benefit-item span {
  font-size: 13px;
  opacity: 0.82;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.section-sub {
  font-size: 17px;
  color: var(--ink-mute);
}

/* === CATALOG === */
.catalog {
  padding: var(--s-16) 0;
  background: var(--bg);
}

/* === CARDS GRID === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}

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

@media (min-width: 640px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .catalog .cards { grid-template-columns: repeat(3, 1fr); }
}

/* === CARD === */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(43,127,212,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(43,127,212,0.16);
  transform: translateY(-3px);
}

.card__image-wrap {
  overflow: hidden;
  flex-shrink: 0;
}

.card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card__image { transform: scale(1.04); }

.card__body {
  flex: 1 1 auto;
  padding: var(--s-4) var(--s-4) var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--s-1) var(--s-3);
  border-radius: 50px;
  align-self: flex-start;
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.card__text {
  font-size: 14px;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.card__footer {
  margin-top: auto;
  padding: var(--s-3) var(--s-4) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

/* === REVIEW CARD === */
.card--review {
  background: var(--surface);
  border: 1px solid var(--border);
}

.card--review .card__body {
  padding: var(--s-6) var(--s-6) var(--s-4);
}

.card--review .card__footer {
  padding: var(--s-3) var(--s-6) var(--s-6);
  border-top: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
}

.review__stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--s-3);
}

.review__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.review__city {
  font-size: 13px;
  color: var(--ink-mute);
}

/* === HOW IT WORKS === */
.how {
  padding: var(--s-16) 0;
  background: var(--primary-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
  counter-reset: steps;
}

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

@media (min-width: 640px) and (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

.step {
  background: var(--surface);
  border-radius: 16px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: 0 2px 8px rgba(43,127,212,0.07);
}

.step__num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.step__text {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* === DELIVERY === */
.delivery {
  padding: var(--s-16) 0;
  background: var(--bg);
}

.delivery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}

@media (max-width: 768px) {
  .delivery__grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

.delivery__subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

.delivery__note {
  margin-top: var(--s-4);
  font-size: 14px;
  color: var(--ink-mute);
  background: var(--primary-light);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--s-3);
  border-left: 3px solid var(--primary);
}

.delivery__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(43,127,212,0.12);
}

/* === TABLE === */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table thead { background: var(--surface-2); }
.data-table th { font-weight: 600; font-size: 14px; color: var(--ink); }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table td { font-size: 14px; color: var(--ink-mute); }
.data-table { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

@media (max-width: 640px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    gap: 12px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-mute);
    flex: 0 0 auto;
  }
}

/* === REVIEWS === */
.reviews {
  padding: var(--s-16) 0;
  background: var(--primary-light);
}

/* === CTA === */
.cta {
  padding: var(--s-16) 0;
  background: var(--surface);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-12);
  align-items: start;
}

@media (max-width: 768px) {
  .cta__inner { grid-template-columns: 1fr; gap: var(--s-8); }
}

.cta__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

.cta__sub {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.65;
}

/* === FORM === */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.form-row .form-group { margin-bottom: 0; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.form-input {
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--border);
  border-radius: var(--s-3);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,127,212,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: var(--s-3);
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-8);
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-6); }
}

.footer-brand .logo {
  color: #fff;
  font-size: 20px;
  display: block;
  margin-bottom: var(--s-3);
}

.footer-tagline {
  font-size: 13px;
  opacity: 0.65;
  line-height: 1.55;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-nav__list a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-nav__list a:hover { color: #fff; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-contact-link {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-contact-link:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-4) 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
