:root {
  --terracotta: #c96f4a;
  --terracotta-dark: #b25a37;
  --deep: #33544a;
  --deep-2: #3d5a6c;
  --cream: #faf6f1;
  --cream-2: #f4f1ec;
  --ink: #2e2a26;
  --ink-soft: #5c554d;
  --border: #e3dccf;
  --whatsapp: #25d366;
  --telegram: #2aabee;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(46, 42, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(46, 42, 38, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
}

.section {
  padding: 88px 0;
}
.section:nth-of-type(even) { background: var(--cream-2); }

.section__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,0.35); }
.btn--telegram { background: var(--telegram); color: #fff; box-shadow: 0 6px 18px rgba(42,171,238,0.35); }
.btn--call { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(201,111,74,0.35); }
.btn--call:hover, .btn--whatsapp:hover, .btn--telegram:hover { filter: brightness(1.05); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  padding: 10px 20px;
}
.btn--outline:hover { background: var(--terracotta); color: #fff; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__text {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 20px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--terracotta); }
.header__phone { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: var(--deep);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,42,38,0.55) 0%, rgba(51,84,74,0.75) 55%, rgba(46,42,38,0.85) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px;
}
.hero__logo {
  width: 220px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35));
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero__lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: #f2ede4;
}
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about__icon { font-size: 34px; margin-bottom: 12px; }
.about__card h3 { font-size: 18px; margin-bottom: 8px; }
.about__card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* Products */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__image { aspect-ratio: 1 / 1; overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 16px 18px; }
.product-card__body h3 { font-size: 16px; margin: 0 0 4px; }
.product-card__body p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Process */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process__step { text-align: center; }
.process__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process__step h3 { font-size: 19px; }
.process__step p { color: var(--ink-soft); margin: 0; }

/* Showroom */
.showroom__video {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.showroom__video video {
  width: 100%;
  display: block;
  max-height: 480px;
}
.showroom__photo {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}
.showroom__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showroom__photo figcaption {
  margin-top: 14px;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
}

.showroom__find {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.showroom__find h3 { font-size: 20px; }
.showroom__find p { color: var(--ink-soft); font-size: 16px; }

/* Reviews */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review-card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.review-card__text::before { content: "\201C"; color: var(--terracotta); font-size: 24px; font-weight: 700; margin-right: 2px; }
.review-card__author { margin-top: auto; }
.review-card__name { font-family: Georgia, serif; font-weight: 700; color: var(--ink); font-size: 15px; }

/* Contacts */
.contacts__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contacts__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacts__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.contacts__list span { color: var(--ink-soft); }
.contacts__list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contacts__cta { justify-content: center; }

.contacts__map {
  margin-top: 48px;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Nav active state */
.nav a.is-active { color: var(--terracotta); }

/* Blog hero */
.blog-hero { padding: 64px 0 24px; text-align: center; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 44px); }

/* Blog list */
.blog-list { padding-top: 24px; }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.blog-card__image--logo {
  background-size: 92%;
  background-repeat: no-repeat;
  background-color: var(--cream-2);
}
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.blog-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(201,111,74,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.blog-card__body h2 { font-size: 20px; margin: 0; }
.blog-card__body p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.blog-card__more { color: var(--terracotta); font-weight: 600; font-size: 14px; margin-top: auto; }

/* Article page */
.article { padding: 56px 0 96px; }
.article__container { max-width: 760px; }
.article__back {
  display: inline-block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
}
.article__back:hover { color: var(--terracotta); }
.article h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-top: 12px;
}
.article__lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.article__cover--logo {
  object-fit: contain;
  width: 100%;
  background: var(--cream-2);
  padding: 24px;
  box-sizing: border-box;
}
.article__video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  margin-bottom: 36px;
}
.article__video video { width: 100%; display: block; max-height: 480px; }

.article h2 { font-size: 24px; margin-top: 36px; }
.article p { font-size: 16px; color: var(--ink-soft); }
.article__note {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0.85;
}
.article__list {
  color: var(--ink-soft);
  font-size: 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article__cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--cream-2);
  border-radius: var(--radius);
  text-align: center;
}
.article__cta p { margin: 0 0 16px; font-weight: 600; color: var(--ink); }
.article__cta .hero__cta { justify-content: center; }

.article__related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.article__related h3 { font-size: 20px; margin-bottom: 20px; }
.article__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article__related-card {
  display: block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article__related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article__related-card h4 { margin: 10px 0 0; font-size: 15px; font-family: Georgia, serif; color: var(--ink); }

/* Footer */
.footer {
  background: var(--ink);
  color: #d8d2c8;
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .brand__text, .footer .brand { color: #fff; }
.footer__contacts { margin: 0; font-size: 14px; }
.footer__copy { margin: 0; font-size: 13px; color: #a49c8f; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,16,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Product modal */
.product-card { cursor: pointer; }
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(20,18,16,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.product-modal.is-open { display: flex; }
.product-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-lg);
}
.product-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-modal__info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.product-modal__info h3 {
  font-size: 24px;
  margin: 0;
}
.product-modal__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-modal__specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.product-modal__specs span { color: var(--ink-soft); }
.product-modal__specs strong { color: var(--ink); font-weight: 600; }
.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(46,42,38,0.08);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.product-modal__close:hover { background: rgba(46,42,38,0.16); }

/* Responsive */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: 1fr; gap: 40px; }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  .about__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 100vh; }
  .hero__logo { width: 160px; }
  .contacts__map { height: 280px; margin-top: 32px; }
  .blog__grid { grid-template-columns: 1fr; }
  .article { padding: 40px 0 64px; }
  .article__related-grid { grid-template-columns: 1fr; }
  .product-modal__panel { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  .product-modal__img { max-height: 260px; }
}
