* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #ded9cd;
  --text-color: #1a1a1a;
  --text-muted: #555555;
  --text-light: #777777;
  --border-color: rgba(0, 0, 0, 0.1);
  --accent-color: #e07a5f;
  --star-color: #d1b473;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 0 5vw;
  margin: 0 auto;
}

/* --- Эффект появления при скролле --- */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(222, 217, 205, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  height: var(--header-height);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 20px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  text-transform: lowercase;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--text-color);
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.5;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-color);
  cursor: pointer;
  text-transform: lowercase;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  font-family: inherit;
}

.mobile-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-overlay__nav a {
  font-size: 1.2rem;
  text-transform: lowercase;
  color: var(--text-color);
}

/* Hero Section */
.hero-section {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  background-image: url('/images/backgroundleft.jpg');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-content {
  width: 50%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.star-icon {
  color: var(--star-color);
  font-size: 48px;
  line-height: 1;
  user-select: none;
}

.star-top {
  margin-bottom: 32px;
  margin-left: 80px;
}

.star-bottom {
  margin-top: 40px;
  align-self: center;
}

.hero-logo-large {
  width: 100%;
  max-width: 480px;
  height: 48px;
  margin-bottom: 28px;
  background-image: url('/images/logo.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-intro {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
  color: #1a1a1a;
}

.hero-description {
  font-size: 0.92rem;
  color: #4a4a4a;
  line-height: 1.7;
  font-weight: 300;
}

/* Catalog Section */
.catalog-section {
  padding: 80px 0;
}

.section-header {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

/* Product Card & Hover Slider */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
}

.product-card__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
}

.product-card__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-card__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

.product-card__slide.active {
  opacity: 1;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__indicators {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-card__slider:hover .product-card__indicators {
  opacity: 1;
}

.product-card__indicator {
  flex: 1;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  transition: background-color 0.2s ease;
}

.product-card__indicator.active {
  background-color: #ffffff;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.product-card__title {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-color);
}

.product-card__price {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
}

.product-card__size {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 300;
}

.product-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 2.6em;
}

.btn-buy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #1a1a1a;
  color: var(--bg-color);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  transition: opacity 0.2s ease;
  margin-top: auto;
}

.btn-buy-link:hover {
  opacity: 0.85;
}

/* Parallax Banners */
.parallax-banner {
  width: 100%;
  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 80px;
}

.parallax-banner--shades {
  background-image: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url('/images/sixcolors.jpg');
}

.parallax-banner--production {
  background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('/images/production.jpg');
}

.parallax-banner--about {
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('/images/project.jpg');
}

.parallax-overlay h2 {
  color: #ffffff;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 300;
  text-align: center;
  max-width: 900px;
  padding: 0 5vw;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border-color);
}

.about-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 40px;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-color);
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-color);
}

.about-text p {
  margin-bottom: 24px;
}

.about-accent-link {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 400;
  margin-top: 8px;
}

.about-accent-link:hover {
  text-decoration: underline;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.about-table tr {
  border-top: 1px solid var(--border-color);
}

.about-table tr:last-child {
  border-bottom: 1px solid var(--border-color);
}

.about-table td {
  padding: 24px 0;
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.6;
}

.about-table .col-num {
  width: 35%;
  font-weight: 400;
  color: var(--text-color);
}

.about-table .col-val {
  width: 65%;
  font-weight: 300;
  color: var(--text-muted);
}

/* Contacts Section */
.contacts-section {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-color);
}

.contacts-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 40px;
}

.contacts-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-color);
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts-intro {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-color);
}

.contacts-intro p {
  margin-bottom: 16px;
}

.contacts-intro .highlight-link {
  color: var(--accent-color);
}

.contacts-intro .highlight-link:hover {
  text-decoration: underline;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
}

.contacts-table tr {
  border-top: 1px solid var(--border-color);
}

.contacts-table tr:last-child {
  border-bottom: 1px solid var(--border-color);
}

.contacts-table td {
  padding: 22px 0;
  font-size: 0.9rem;
  vertical-align: top;
}

.contacts-table .col-num {
  width: 35%;
  font-weight: 400;
  color: var(--text-color);
}

.contacts-table .col-val {
  width: 65%;
  font-weight: 400;
  color: var(--text-color);
}

.contacts-table .col-val a {
  color: var(--accent-color);
}

/* Subscribe Section */
.subscribe-section {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-color);
}

.subscribe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.subscribe-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.subscribe-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.subscribe-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subscribe-text {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 40px;
}

.subscribe-text p {
  margin-bottom: 16px;
}

.subscribe-text p:last-child {
  margin-bottom: 0;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
  font-weight: 300;
}

.form-input:focus {
  border-bottom-color: var(--text-color);
}

.btn-submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--text-color);
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-color);
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

/* Блок согласия на обработку данных под кнопкой */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--text-color);
  cursor: pointer;
}

.form-consent span {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-consent a {
  text-decoration: underline;
  color: var(--text-color);
}

.form-consent a:hover {
  opacity: 0.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 60px;
}

.footer__grid .logo {margin-bottom: 16px;}

.footer__grid p {color: var(--text-muted); font-weight: 300;}

.footer__col h5 {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: lowercase;
  color: var(--text-color);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--text-color);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Доступное скрытие элементов (для скринридеров и SEO, но невидимо на экране) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
	width: 55%;
  }

  .products-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 36px 24px;
  }

  .about-layout, .contacts-layout, .subscribe-layout {
	grid-template-columns: 1fr;
	gap: 40px;
  }

  .footer__grid {
	grid-template-columns: 1fr 1fr;
  }

  .product-card__indicators {
	opacity: 1;
  }
}

@media (max-width: 768px) {
  .nav {
	display: none;
  }

  .mobile-menu-btn {
	display: block;
  }

  .hero-section {
	background-position: center bottom;
	background-size: 90% auto;
	padding-top: calc(var(--header-height) + 20px);
	padding-bottom: 280px;
  }

  .hero-container {
	justify-content: center;
  }

  .hero-content {
	width: 100%;
  }

  .star-top {
	margin-left: 0;
  }

  .products-grid {
	grid-template-columns: 1fr;
	gap: 32px;
  }

  .parallax-banner {
	background-attachment: scroll;
	min-height: 70vh;
  }

  .about-table td, .contacts-table td {
	padding: 16px 0;
  }

  .footer__grid {
	grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .parallax-banner--about {
    background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('/images/project_new.webp');
    background-size: auto;
  }
  .parallax-banner {
    background-attachment: fixed;
  }
}