/* -------------------- RESET & GLOBAL -------------------- */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: inherit;
}

:root {
  --primary-dark: #343B29;
  --secondary-dark: #49543a;
  --accent-green: #689F38;
  --accent-beige: #F8F5F2;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --alert-red: #D32F2F;
  --hover-green: #558B2F;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

html,
body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

body {
  padding-top: 90px;
  background-color: white;
  color: var(--text-dark);
}

/* -------------------- LOADER -------------------- */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.floor-loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.tile {
  width: 20px;
  height: 20px;
  background: var(--accent-green);
  position: absolute;
  animation: tileMove 1.5s infinite ease-in-out;
}

.tile:nth-child(2) { animation-delay: 0.2s; }
.tile:nth-child(3) { animation-delay: 0.4s; }
.tile:nth-child(4) { animation-delay: 0.6s; }

@keyframes tileMove {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(60px, 0); }
  50%      { transform: translate(60px, 60px); }
  75%      { transform: translate(0, 60px); }
}

.loading-text {
  margin-top: 20px;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  font-size: 18px;
  letter-spacing: 2px;
}

.progress-bar {
  width: 200px;
  height: 3px;
  background: #eee;
  margin-top: 10px;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

/* -------------------- UTILITY CLASSES -------------------- */
.menu-open     { overflow: hidden; }
.hidden        { display: none !important; }
body.loaded    { opacity: 1; }
img            { vertical-align: top; }
a              { text-decoration: none; color: inherit; }
ul, ol, li     { list-style: none; }
h3             { padding: 15px 0px 30px; text-align: center; }
.main          { position: relative; padding: 10px; line-height: 1.6; }

/* -------------------- DARK THEME -------------------- */
body.dark-theme {
  color: var(--text-light) !important;
  background-color: var(--primary-dark) !important;
}

body.dark-theme header,
body.dark-theme footer {
  background-color: var(--secondary-dark) !important;
}

body.dark-theme * {
  color: inherit;
}

body.dark-theme a,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme span,
body.dark-theme div {
  color: inherit !important;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme .modal-order-content,
body.dark-theme #filters.active,
body.dark-theme label,
body.dark-theme main,
body.dark-theme .collection__container,
body.dark-theme .laminat-desc,
body.dark-theme .submenu,
body.dark-theme .nav-menu.active,
body.dark-theme .submenu.active,
body.dark-theme .cart-content,
body.dark-theme .cart-item,
body.dark-theme .cart-item h4,
body.dark-theme .cart-item p,
body.dark-theme .quantity-controls,
body.dark-theme .quantity-controls button {
  background-color: var(--primary-dark) !important;
  color: var(--accent-beige) !important;
  border-color: var(--accent-green) !important;
}

body.dark-theme .quantity-controls {
  box-shadow: 0 2px 4px rgba(134, 134, 134, 0.47);
}

body.dark-theme .burger-lines span {
  background: var(--text-light);
}

body.dark-theme .submenu a:hover {
  background-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--accent-green) !important;
}

body.dark-theme .fa-sliders::before {
  color: var(--text-dark);
}

/* -------------------- HEADER & NAVIGATION -------------------- */
header {
  height: 80px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transform: translateY(0);
  transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
  opacity: 1;
}

header.hidden {
  transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform: translateY(-100%);
  opacity: 0;
}

.header-container {
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.site-title {
  display: inline-block;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 1001;
}

.nav-item {
  color: var(--text-light);
  position: relative;
  padding: 0.8rem 0;
}

.nav-item > a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  position: relative;
  width: 150px;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-beige);
  transition: width 0.3s;
}

.nav-item:hover > a::after {
  width: 100%;
}

/* выпадающее меню */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--accent-beige);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  padding: 1rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(15px);
  overflow-y: auto;
  height: 400px;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
  padding: 0.6rem 0;
}

.submenu a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.5s;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.submenu a:hover {
  color: var(--hover-green);
  padding-left: 20px;
}

/* иконки соцсетей */
.social-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-icons a {
  color: var(--text-light);
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.social-icons a:hover {
  color: var(--hover-green);
  transform: translateY(-2px);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin-left: 15px;
  padding: 5px;
  color: inherit;
  position: sticky;
  left: 95%;
}

/* -------------------- ИЗОБРАЖЕНИЯ / СЕТКА КАТАЛОГА -------------------- */
.product-actions {
  margin-top: 10px;
  gap: 8px;
  margin-bottom: 10px;
}

.image-grid-wrapper {
  padding: 30px 50px;
  background: var(--accent-beige);
  border-radius: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.image-grid {
  display: grid;
  grid-template: repeat(4, 1fr) / repeat(4, 1fr);
  gap: 10px;
  margin: 0 auto;
  max-width: 800px;
}

.grid-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 150px;
}

.grid-item-lam       { grid-column: span 2; grid-row: span 2; height: 310px; }
.grid-item-kvartz    { grid-column: span 2; grid-row: span 2; height: 310px; }
.grid-item-linoleum  { grid-column: span 1; grid-row: span 1; height: 150px; }
.grid-item-podlozhka { grid-column: span 1; grid-row: span 1; height: 150px; object-fit: contain; }
.grid-item-plintusa  { grid-column: span 1; grid-row: span 1; }
.grid-item-lepnina   { grid-column: span 1; grid-row: span 2; }
.grid-item-porogi    { grid-column: span 1; grid-row: span 1; }
.grid-item-kovrolin  { grid-column: span 1; grid-row: span 1; }
.grid-item-kover-plitka { grid-column: span 2; grid-row: span 1; }

.grid-item-link {
  text-decoration: none;
  color: #333333;
  display: block;
}

.grid-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.grid-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #F8F5F2;
  padding: 12px 15px;
  margin: 0;
  font-size: 1.1rem;
  font-family: Arial, sans-serif;
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(107, 95, 84, 0.312) 0%, 
    rgba(107, 95, 84, 0.312) 50%, 
    rgba(107, 95, 84, 0.312) 100%
  );
  background-size: 300% 300%;
  background-position: 0% 0%;
  transition: background-position 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item:hover .grid-title {
  background: linear-gradient(135deg, 
    rgba(104, 159, 56, 0.2) 0%, 
    rgba(104, 159, 56, 0.6) 40%, 
    rgba(52, 59, 41, 0.9) 100%
  );
  background-size: 300% 300%;
  background-position: 100% 100%;
}

/* -------------------- КНОПКИ, БУРГЕР, МОБИЛЬНАЯ ВЕРСИЯ (адаптив) -------------------- */
.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.add-to-cart {
  background-color: var(--accent-green);
  color: var(--text-light);
  border: 2px solid var(--accent-green);
}

.btn:hover {
  opacity: 0.9;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1002;
  order: 3;
  backdrop-filter: blur(5px);
  position: fixed;
  top: 15px;
  right: 10px;
}

.burger-lines {
  display: block;
  position: relative;
  width: 32px;
  height: 26px;
}

.burger-lines span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  left: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-lines span:nth-child(1) { top: 0; width: 30px; }
.burger-lines span:nth-child(2) { top: 10px; width: 25px; }
.burger-lines span:nth-child(3) { top: 20px; width: 20px; }

.mobile-menu-btn.active .burger-lines span {
  background: var(--text-dark);
}

.mobile-menu-btn.active .burger-lines span:nth-child(1) {
  width: 32px;
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .burger-lines span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .burger-lines span:nth-child(3) {
  width: 32px;
  transform: rotate(-45deg) translate(7px, -7px);
}

/* -------------------- ОСНОВНЫЕ СЕКЦИИ (welcome, container, wrapper, слайдер) -------------------- */
.welcome-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--accent-beige);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.welcome-section h1 {
  font-size: 2rem;
  color: var(--hover-green);
  margin-bottom: 20px;
}

.welcome-section p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.welcome-section .features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-around;
  margin-top: 30px;
}

.welcome-section .feature-item {
  flex: 1 1 100%;
  margin: 5px 5px;
  padding: 10px;
  background: var(--text-light);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-section .feature-item i {
  font-size: 2rem;
  color: var(--secondary-dark);
  margin-bottom: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo__img {
  width: 40px;
  height: 40px;
}

.wrapper {
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* кастомный слайдер */
.custom-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.slides-container {
  position: relative;
  width: 100%;
  padding-top: 40%;
  overflow: hidden;
}

.slides-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  min-width: 100%;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.slide-link:hover img {
  transform: scale(1.03);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 45px;
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.slider-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-indicators span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.slider-indicators span.active {
  background: #fff;
  transform: scale(1.2);
}

/* -------------------- КНОПКА "НАВЕРХ" -------------------- */
.scroll-top {
  position: fixed !important;
  bottom: 60px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  background-color: var(--secondary-dark);
  border-radius: 50% !important;
  font-size: 20px;
  color: var(--text-light);
  border: none !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s, transform 0.2s !important;
  z-index: 52 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 3s ease-in-out;
}

.scroll-top.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.scroll-top:hover {
  background-color: var(--hover-green);
  color: var(--accent-beige);
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 2rem 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.footer-block {
  padding: 0.5rem;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.footer-hours {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(104, 159, 56, 0.1);
  margin-top: 10px;
  justify-content: center;
}

.footer-hours-icon {
  font-size: 1.8rem;
  color: #689F38;
}

.footer-hours-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-hours-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
  animation: pulse 1.5s infinite;
}

.status-text {
  font-weight: 500;
  transition: color 0.3s ease;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.open .status-dot {
  background: #689F38;
  animation: pulse 1.5s infinite;
}

.closed .status-dot {
  background: #ff4444;
}

.closed .status-text {
  color: #ff9999;
}

/* аналоговые часы в футере */
.analog-clock {
  width: 50px;
  height: 50px;
  border: 2px solid #689F38;
  border-radius: 50%;
  position: relative;
  background: #343B29;
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.4, 2.3, 0.3, 1);
}

.hour-hand {
  width: 2px;
  height: 35%;
  background: #689F38;
}

.minute-hand {
  width: 2px;
  height: 45%;
  background: #FFFFFF;
}

.second-hand {
  width: 1px;
  height: 45%;
  background: #ff4444;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #ff4444;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.8rem;
}

.footer-description {
  line-height: 1.4;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-green);
}

.footer-menu {
  display: grid;
  gap: 0.6rem;
}

.footer-menu-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s);
}

.footer-menu-link:hover {
  color: var(--accent-green);
}

.contact-list {
  display: grid;
  gap: 0.6rem;
}

.contact-icon {
  width: 16px;
  margin-right: 0.5rem;
  color: var(--accent-green);
}

.contact-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s);
}

.contact-link:hover {
  color: var(--accent-green);
}

.social-compact {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-icon {
  font-size: 1.2rem;
  transition: color var(--transition-fast, 0.2s);
}

.social-icon:hover {
  color: var(--hover-green);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.8rem 0;
}

.legal-link {
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast, 0.2s);
}

.legal-link:hover {
  color: var(--accent-green);
}

.copyright {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.confidential-text {
  padding: 15px;
}

/* -------------------- ВЫПАДАЮЩИЙ КАТАЛОГ (dropdown) -------------------- */
.dropdown {
  height: 100%;
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 20px;
}

.catalog-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background-color: var(--accent-green);
  color: var(--text-light);
  border: 2px solid var(--accent-green);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.catalog-btn:hover {
  transform: translateY(-2px);
  background-color: var(--hover-green);
  border-color: var(--hover-green);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

.dropdown-content.show {
  padding-top: 10px;
  max-height: 800px;
  opacity: 1;
  margin: 1.4rem 0;
}

.category-card {
  border: 2px solid var(--accent-green);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--accent-green);
  background: linear-gradient(135deg, 
    var(--text-light) 0%, 
    var(--text-light) 50%, 
    var(--text-light) 100%
  );
  background-size: 300% 300%;
  background-position: 0% 0%;
  transition: background-position 2s cubic-bezier(0.22, 0.61, 0.36, 1), 
              transform 0.8s ease, 
              box-shadow 0.8s ease,
              color 0.3s ease;
}

.category-card:hover {
  background: linear-gradient(135deg, 
    var(--accent-beige) 0%, 
    var(--hover-green) 40%, 
    var(--primary-dark) 100%
  );
  background-size: 300% 300%;
  background-position: 100% 100%;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--text-light);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
  transition: color 0.8s ease, transform 0.3s ease;
}

.category-card:hover .category-icon {
  color: var(--accent-beige);
  transform: scale(1.1);
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 20px;
}

/* -------------------- ТУЛТИПЫ (tooltip) -------------------- */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.tooltip-trigger {
  cursor: pointer !important;
  width: 1.2em !important;
  height: 1.2em !important;
  border: none !important;
  border-radius: 50% !important;
  background: var(--primary-color, var(--primary-dark)) !important;
  color: var(--text-light) !important;
  font-size: 0.7em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background 0.2s !important;
  margin: 0 0 10px 0 !important;
}

.tooltip-trigger:hover {
  background: var(--hover-green);
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-beige);
  color: var(--text-dark);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  max-width: min(300px, 90vw);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  font-size: 0.9em;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

.tooltip.active {
  opacity: 1;
  visibility: visible;
}

.tooltip a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s;
}

/* -------------------- MPK ТАЙМЕР И ТОВАРЫ (акции) -------------------- */
.mpk-timer-section {
  background-color: var(--accent-beige);
  padding: 30px 0 0 0;
  text-align: center;
}

.mpk-timer-box {
  background-color: var(--secondary-dark);
  display: inline-block;
  padding: 20px 40px;
  border-radius: 10px;
}

.mpk-timer-text {
  color: var(--accent-beige);
  font-size: 1.2em;
  margin: 0 0 15px 0;
}

.mpk-time-block {
  display: inline-block;
  margin: 0 15px;
}

.mpk-time-number {
  font-size: 2.5em;
  color: var(--accent-beige);
  font-weight: bold;
}

.mpk-time-label {
  color: var(--text-light);
  display: block;
}

.mpk-products-grid {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.mpk-product-card {
  background: var(--accent-beige);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mpk-product-title:hover {
  transform: translateX(10px);
  color: var(--hover-green);
}

.mpk-product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 5px;
  padding-top: 20px;
}

.mpk-product-title {
  color: var(--text-dark);
  margin: 10px 0;
  font-size: 1.1em;
  transition: all 0.5s ease;
}

.mpk-price-box {
  justify-content: center;
  align-items: center;
}

.mpk-old-price {
  color: var(--text-dark);
  text-decoration: line-through;
}

.mpk-new-price {
  color: var(--alert-red);
  font-weight: bold;
  font-size: 1.4em;
}

/* -------------------- ФОРМА ОТЗЫВОВ -------------------- */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  background: var(--accent-beige);
}

.review-form input,
.review-form textarea,
.review-form button {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.review-form button {
  background-color: var(--accent-green);
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.3s;
}

.review-form button:hover {
  background-color: var(--hover-green);
}

.review {
  background: var(--accent-beige);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-author {
  font-weight: bold;
  color: var(--text-dark);
}

.review-date {
  color: var(--text-dark);
  font-size: 0.9em;
}

.review-content {
  line-height: 1.6;
  margin-bottom: 15px;
}

.rating-buttons {
  display: flex;
  gap: 10px;
}

.rating-btn {
  background: var(--accent-beige);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-form {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.comment-form input {
  flex: 1;
  padding: 8px;
}

/* -------------------- SEO-ТЕКСТ (аккордеон) -------------------- */
.seo-text {
  padding: 30px 0px;
}

.seo-section {
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.seo-section h2 {
  font-size: 16px;
  color: #333333;
  margin-bottom: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seo-section h2::after {
  content: "▼";
  font-size: 16px;
  color: #999999;
  transition: transform 0.3s ease;
}

.seo-section h2.active::after {
  transform: rotate(180deg);
}

.seo-section .seo-content {
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  color: #999999;
}

.seo-section .seo-content.expanded {
  max-height: 1000px;
}

/* -------------------- МОБИЛЬНЫЙ НИЖНИЙ БАР И ПОИСК -------------------- */
.mobile-header {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  top: auto !important;
  height: 55px;
  align-items: center;
}

.mobile-header-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 55px;
}

.mobile-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-size: 12px;
  position: relative;
  padding: 8px;
  transition: color 0.3s ease;
}

.mobile-icon:hover {
  color: var(--hover-green);
}

.mobile-icon i {
  font-size: 20px;
  margin-bottom: 4px;
}

.mobile-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-cart .cart-count {
  position: absolute;
  top: -3px;
  right: -6px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1;
}

.mobile-catalog-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 999;
  max-height: 70vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px 15px 0 0;
  padding: 20px;
}

.mobile-catalog-menu.active {
  bottom: 60px;
  transform: translateY(0);
  background-color: var(--primary-dark);
}

.mobile-submenu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-submenu-list li {
  margin: 5px 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  height: 50px;
  border-radius: 5px;
  background-color: var(--accent-beige);
}

.mobile-submenu-list a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 16px;
  display: block;
  text-align: center;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.mobile-submenu-list a:hover {
  background: #f5f5f5;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.furnitura {
  display: none;
}

.search-container {
  margin: 20px;
  display: none;
}

.mobile-search-container {
  position: fixed;
  top: -95px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: top 0.3s ease;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100px;
  transition: top 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.mobile-search-container:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.mobile-search-container.active {
  top: 0;
  background-color: var(--primary-dark);
}

#searchInput,
#mobileSearchInput {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-btn {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.3s;
}

.search-btn:hover {
  background: var(--hover-green);
}

.close-search {
  background: none;
  border: none;
  font-size: 30px;
  margin-left: 10px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 8px;
}

#noResults {
  display: none;
  padding: 20px;
  text-align: center;
  color: #666;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 0 5px;
}

.clear-search:hover {
  color: #666;
}

#searchInput,
#mobileSearchInput {
  padding-right: 30px;
  width: 100%;
}

/* -------------------- СТРАНИЦА "СПАСИБО" (заказ) -------------------- */
.thank-you-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.button {
  border-radius: 5px;
  border: 1px solid var(--hover-green);
  padding: 10px;
  margin-top: 10px;
}

.button:hover {
  background-color: var(--hover-green);
}

.thank-you-icon {
  font-size: 80px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.order-details {
  margin: 30px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  text-align: left;
}

.order-details p {
  color: black;
}

.order-info {
  font-size: 16px;
  line-height: 1.6;
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.order-items li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.order-totals {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.order-totals .total {
  font-size: 18px;
  font-weight: bold;
  color: #2b2d42;
  margin-top: 10px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-button i {
  margin-right: 10px;
  font-size: 1.2em;
}

.samovivoz {
  padding: 8px;
  background-color: var(--accent-green);
  color: var(--text-dark);
  border-radius: 5px;
}

.samovivoz:hover {
  background-color: var(--hover-green);
  color: var(--text-light);
}

#saveOrderBtn {
  background-color: var(--accent-green);
  color: var(--text-darkt);
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
}

#saveOrderBtn:hover {
  background-color: var(--hover-green);
  color: var(--text-light);
}

#saveOrderBtn i {
  margin-right: 10px;
}

/* -------------------- НОВОСТИ -------------------- */
.news {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.news h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
  color: var(--text-dark);
}

.news-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  left: 0;
  width: 100%;
}

.news-item {
  background: linear-gradient(135deg, var(--secondary-dark), var(--hover-green));
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 15px;
  max-width: 350px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
  margin-top: 0;
  color: var(--text-light);
  font-size: 20px;
}

.news-date {
  color: #7f8c8d;
  font-size: 14px;
  margin: 10px 0;
  font-style: italic;
}

.news-item p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-item a {
  display: inline-block;
  color: var(--secondary-dark);
  text-decoration: none;
  font-weight: 600;
}

.news-item a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.all-news-link {
  text-align: center;
  margin-top: 30px;
}

.all-news-link a {
  display: inline-flex;
  align-items: center;
  color: var(--accent-green);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.all-news-link a:hover {
  color: var(--hover-green);
}

.all-news-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.all-news-link a:hover i {
  transform: translateX(5px);
}

.news-page {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.news-page h1 {
  text-align: center;
  color: var(--secondary-dark);
}

.news-full {
  background: var(--accent-beige);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

.news-full h2 {
  margin-top: 0;
  color: var(--secondary-dark);
  font-size: 24px;
}

.news-full .news-date {
  color: #7f8c8d;
  font-size: 16px;
  margin-bottom: 20px;
}

.news-content {
  color: #555;
  line-height: 1.8;
}

.news-content h3 {
  color: var(--secondary-dark);
  font-size: 20px;
  margin-top: 25px;
}

.news-content ul {
  padding-left: 20px;
}

.news-content li {
  margin-bottom: 10px;
}

.cta a {
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta a:hover {
  color: var(--hover-green);
  transform: translateX(5px);
}

.cta i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta a:hover i {
  transform: translateX(5px);
}

/* быстрые ссылки (аккордеон по годам) */
.quick-links-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
  border-radius: 12px;
  padding: 10px 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5eb;
}

.quick-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
}

.quick-links-header h2 {
  margin: 0;
  color: var(--secondary-dark);
  font-size: 24px;
  font-weight: 700;
}

.news-search-container {
  display: flex;
  max-width: 400px;
  flex-grow: 1;
}

#newsSearch {
  flex-grow: 1;
  padding: 12px 15px;
  border: 2px solid var(--accent-green);
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

#newsSearch:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#searchButton {
  background: var(--accent-green);
  color: var(--text-light);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#searchButton:hover {
  background: var(--hover-green);
}

.years-accordion {
  border-radius: 8px;
  overflow: hidden;
}

.year-section {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-beige);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.year-section.active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.year-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-beige);
  cursor: pointer;
  transition: background 0.3s ease;
  border-bottom: 1px solid #e1e5eb;
}

.year-header:hover {
  background: var(--accent-beige);
}

.year-header h3 {
  margin: 0;
  color: var(--secondary-dark);
  font-size: 18px;
  font-weight: 600;
}

.toggle-icon {
  color: var(--accent-green);
  transition: transform 0.3s ease;
}

.news-count {
  background: var(--secondary-dark);
  color: var(--text-light);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  text-align: center;
}

.quick-links-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.year-section.active .quick-links-list {
  max-height: 1000px;
}

.quick-links-list li {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.quick-links-list li:last-child {
  border-bottom: none;
}

.quick-links-list li:hover {
  background: #ddd;
}

.quick-links-list a {
  display: flex;
  align-items: center;
  color: var(--secondary-dark);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.news-date-badge {
  background: var(--accent-beige);
  color: var(--accent-green);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  min-width: 85px;
  text-align: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.news-title {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  word-break: break-word;
  hyphens: auto;
}

.quick-links-list a:hover .news-title {
  color: var(--hover-green);
}

/* -------------------- БРЕНДЫ -------------------- */
.brands-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand-item {
  background: white;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.brand-item img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-item a {
  display: block;
  transition: transform 0.3s ease;
}

.brand-item a:hover {
  transform: scale(1.05);
}

.brand-item a:hover img {
  opacity: 0.9;
}

/* -------------------- БЫСТРЫЕ ССЫЛКИ (горизонтальный скролл) -------------------- */
.fast-links {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  margin-bottom: 20px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
}

.fast-links::-webkit-scrollbar {
  height: 6px;
}

.fast-links::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.fast-links::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.fast-links::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.fast-link-block {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 5px 0;
  min-width: max-content;
}

.fast-link-block li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fast-link-block .fast.link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fast-link-block .fast.link:hover {
  background-color: #e9e9e9;
  border-color: #ccc;
}

.fast-link-block .fast.link.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.fast-links::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
}

/* -------------------- СТРАНИЦА "СКЛАДСКИЕ УСЛУГИ" -------------------- */
.storage-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.storage-header {
  text-align: center;
  margin-bottom: 40px;
}

.storage-header h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.storage-header p {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.storage-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.storage-conditions {
  background: var(--accent-beige);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.condition-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.condition-icon {
  background: var(--accent-green);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.condition-content h3 {
  margin-top: 0;
  color: var(--text-dark);
}

.process-steps {
  margin-bottom: 50px;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 5%;
  width: 90%;
  height: 3px;
  background: var(--accent-green);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 200px;
  padding: 20px;
}

.step h3 {
  color: var(--text-dark);
}

.storage-faq {
  background: var(--accent-beige);
  border-radius: 10px;
  padding: 40px;
}

/* -------------------- КАЛЬКУЛЯТОР НАПОЛЬНЫХ ПОКРЫТИЙ -------------------- */
.calculation-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--text-light);
  padding: 60px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  opacity: 0.3;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.benefit-card {
  background: var(--accent-beige);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  font-size: 2.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.benefit-card h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.benefit-btn {
  background: var(--accent-green);
  color: var(--text-light);
  border: none;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
}

.benefit-btn:hover {
  background: var(--hover-green);
  transform: translateY(-3px);
}

.calculator-section {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 50px 0;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.calculation-header p {
  padding-bottom: 15px;
}

.layout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.layout-option:hover {
  border-color: #3498db;
}

.layout-option.selected {
  border-color: #2980b9;
  background-color: #f0f8ff;
  box-shadow: 0 0 8px rgba(41, 128, 185, 0.5);
}

.layout-image-container {
  position: relative;
  width: 100px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
}

.layout-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  transition: transform 0.5s ease;
}

.layout-option:hover .layout-thumbnail {
  transform: scale(1.8);
}

.layout-name {
  margin-top: 5px;
  font-size: 13px;
  text-align: center;
  color: #333;
}

.section-title {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 30px;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-green);
  border-radius: 2px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calculator-inputs {
  padding: 20px;
  background: var(--accent-beige);
  border-radius: var(--border-radius);
}

.calculate-btn {
  background: var(--accent-green);
  color: var(--text-light);
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.calculate-btn:hover {
  background: var(--hover-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(104, 159, 56, 0.3);
}

.calculator-results {
  padding: 20px;
  background: var(--accent-beige);
  border-radius: var(--border-radius);
  position: relative;
}

.result-item {
  padding: 18px;
  margin-bottom: 15px;
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow-color);
  border-left: 4px solid var(--accent-green);
}

.result-item h4 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.result-value {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 1.2rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.material-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--accent-green);
}

.material-card:hover {
  transform: translateY(-5px);
}

.material-icon {
  height: 140px;
  background: var(--accent-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--accent-green);
}

.material-content {
  padding: 20px;
}

.material-content h3 {
  margin-top: 0;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.faq-section {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 50px 0;
  box-shadow: 0 5px 20px var(--shadow-color);
}

/* общие стили для аккордеона FAQ (используются в нескольких местах) */
.faq-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 25px;
}

.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  padding: 10px 0;
}

.faq-item h3::after {
  content: "+";
  font-size: 1.8rem;
  color: var(--accent-green);
  transition: transform 0.3s;
}

.faq-item.active h3::after {
  content: "−";
}

.faq-content {
  display: none;
  padding: 10px 5px;
  color: var(--text-dark);
  line-height: 1.7;
}

.faq-item.active .faq-content {
  display: block;
}

.cta-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: var(--text-light);
  border-radius: var(--border-radius);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  position: relative;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
  position: relative;
}

.cta-button {
  display: inline-block;
  background: var(--accent-green);
  color: var(--text-light);
  padding: 16px 50px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(104, 159, 56, 0.4);
  cursor: pointer;
}

.cta-button:hover {
  background: var(--hover-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(104, 159, 56, 0.6);
}

.note-box {
  background: #e8f5e9;
  border-left: 4px solid var(--accent-green);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.results-placeholder {
  text-align: center;
  color: #777;
  padding: 40px;
  font-style: italic;
  background: var(--accent-beige);
  border-radius: var(--border-radius);
}

.floor-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  z-index: 0;
}

.pattern-1 {
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, var(--accent-green) 25%, transparent 25%, transparent 75%, var(--accent-green) 75%),
              linear-gradient(45deg, var(--accent-green) 25%, transparent 25%, transparent 75%, var(--accent-green) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.pattern-2 {
  bottom: 20px;
  left: 20px;
  background: repeating-linear-gradient(45deg, var(--accent-green) 0px, var(--accent-green) 5px, transparent 5px, transparent 10px);
}

/* -------------------- СТРАНИЦА ПАРТНЁРСТВА -------------------- */
.partnership-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.partnership-process {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  margin: 50px 0;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  background: var(--accent-beige);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  position: relative;
  border: 1px solid #e0e0e0;
}

.step-number-partner {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-green);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-number {
  background: var(--accent-green);
  color: var(--text-light);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  font-weight: bold;
}

.step-card h3 {
  color: var(--primary-dark);
  margin: 15px 0 10px;
}

.partners-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.partner-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-10px);
}

.partner-header {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 25px;
  text-align: center;
}

.partner-content {
  padding: 30px;
}

.partner-content ul {
  list-style-type: none;
  margin: 20px 0;
}

.partner-content li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}

.partner-content li:last-child {
  border-bottom: none;
}

.partner-content li i {
  color: var(--accent-green);
  margin-right: 10px;
  margin-top: 5px;
}

.partner-card .benefit-btn {
  width: 100%;
  text-align: center;
}

.testimonials-section {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 50px;
  margin: 50px 0;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--accent-beige);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  border: 1px solid #e0e0e0;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5rem;
  color: rgba(104, 159, 56, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
  margin-right: 15px;
}

.author-info h4 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.author-info p {
  color: #777;
  font-size: 0.9rem;
}

.partnership-form {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 50px;
  margin: 50px 0;
  box-shadow: 0 5px 20px var(--shadow-color);
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--accent-beige);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-green);
  color: var(--text-light);
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: block;
  margin: 30px auto 0;
  width: 250px;
  max-width: 100%;
  position: relative;
}

.submit-btn:hover {
  background: var(--hover-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(104, 159, 56, 0.4);
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: var(--accent-green);
}

.notification.error {
  background: #e74c3c;
}

.notification i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.telegram-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: #0088cc;
  animation: pulse 2s infinite;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.partner-logo {
  background: var(--text-light);
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px var(--shadow-color);
  padding: 15px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 70px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.partner-logo:hover img {
  filter: grayscale(0);
}

/* -------------------- COOKIE-УВЕДОМЛЕНИЕ -------------------- */
#cookie-notification {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  font-size: 14px;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

#cookie-accept {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#cookie-accept:hover {
  background: #45a049;
}

.cookie-buttons a {
  color: #4CAF50;
  text-decoration: none;
  border-bottom: 1px dashed #4CAF50;
  transition: color 0.3s;
}

.cookie-buttons a:hover {
  color: #45a049;
  border-bottom-style: solid;
}

/* -------------------- БЛОК ОТЗЫВОВ (детальная стилизация) -------------------- */
.reviews-section {
  padding: 10px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.reviews-section h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.reviews-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #3498db;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.review-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eaeaea;
  animation: fadeIn 0.5s ease-out;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.review-author {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c3e50;
  margin-right: 15px;
}

.review-rating {
  flex-shrink: 0;
}

.review-rating .stars {
  color: #FFD700;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.review-content {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #34495e;
}

.review-date {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: right;
}

.user-actions {
  position: relative;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card:hover .user-actions {
  opacity: 1;
}

.edit-review,
.delete-review {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-review {
  color: #3498db;
}

.delete-review {
  color: #e74c3c;
}

.edit-review:hover {
  color: white;
  transform: scale(1.1);
}

.delete-review:hover {
  color: white;
  transform: scale(1.1);
}

.admin-reply {
  background-color: #f5f9ff;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reply-admin-label {
  font-weight: bold;
  color: #2980b9;
  font-size: 1.1rem;
}

.reply-actions {
  display: flex;
  gap: 8px;
}

.reply-text {
  line-height: 1.6;
  color: #2c3e50;
}

.reply-date {
  font-size: 0.8rem;
  color: #7f8c8d;
  text-align: right;
  margin-top: 10px;
}

.reply-form {
  margin-top: 20px;
  padding: 15px;
  background: #f0f8ff;
  border-radius: 8px;
  border: 1px dashed #3498db;
}

.reply-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.reply-form textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.send-reply {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.send-reply:hover {
  background: #2980b9;
}

.add-review {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

#show-review-form {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

#show-review-form:hover {
  background: #27ae60;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
}

#show-review-form:active {
  transform: translateY(1px);
}

.review-form-container {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-radius: 8px;
}

.review-form-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

#formTitle {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.rating-stars {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.rating-stars span {
  font-size: 2rem;
  color: #FFD700;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.rating-stars span:hover,
.rating-stars span.active {
  color: #FFD700;
  transform: scale(1.1);
}

.rating-stars span:hover ~ span {
  color: #ecf0f1 !important;
}

#reviewText {
  width: 100%;
  padding: 15px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

#reviewText:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

#submitReviewBtn,
#cancelEditBtn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#submitReviewBtn {
  background: #2ecc71;
  color: white;
}

#submitReviewBtn:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

#cancelEditBtn {
  background: #e74c3c;
  color: white;
}

#cancelEditBtn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.review-form-container.highlight {
  animation: highlightForm 2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  background-color: #f9fff9;
}

@keyframes highlightForm {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% {
    transform: scale(1.005);
    box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.loading {
  text-align: center;
  padding: 30px;
  font-size: 1.2rem;
  color: #7f8c8d;
  grid-column: 1 / -1;
}

.loading::after {
  content: '...';
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.no-reviews {
  text-align: center;
  padding: 30px;
  font-size: 1.2rem;
  color: #7f8c8d;
  grid-column: 1 / -1;
  font-style: italic;
}

.error {
  text-align: center;
  padding: 30px;
  font-size: 1.2rem;
  color: #e74c3c;
  grid-column: 1 / -1;
}

/* -------------------- АНИМАЦИИ ДЛЯ FEATURE-БЛОКОВ -------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-item {
  background: var(--accent-beige);
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(20px);
}

.feature-item.animate {
  animation: fadeInUp 0.6s forwards;
}

.feature-item:hover {
  transform: translateY(-10px);
  background: linear-gradient(145deg, #ffffff, #e8e5e2);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--accent-green);
  margin-bottom: 15px;
  display: block;
  transition: all 0.3s ease;
}

.feature-item:hover i {
  color: var(--hover-green);
  animation: pulse 1s ease infinite;
}

.feature-item p {
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  font-size: 1.05rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* -------------------- МЕДИА-ЗАПРОСЫ (АДАПТИВ) -------------------- */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .grid-image {
    height: 150px;
    object-fit: cover;
  }
  .grid-item {
    height: 150px;
  }
  .grid-item-lam,
  .grid-item-kvartz {
    grid-column: span 2;
    grid-row: span 1;
  }
  .grid-item-linoleum,
  .grid-item-podlozhka,
  .grid-item-plintusa,
  .grid-item-lepnina,
  .grid-item-porogi,
  .grid-item-kovrolin {
    grid-column: span 1;
    grid-row: span 1;
  }
  .grid-item-kover-plitka {
    grid-column: span 2;
    grid-row: span 1;
  }
  .grid-title {
    font-size: 1rem;
    padding: 10px;
  }
  .image-grid-wrapper {
    padding: 20px 10px;
  }

  .header-container {
    padding: 1rem;
  }
  .site-title {
    font-size: 1.2rem;
  }
  .logo {
    width: 30px;
    height: 30px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    background: var(--accent-beige);
    flex-direction: column;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-menu.active {
    right: 0;
    display: flex;
    z-index: 1001;
    height: 100vh;
  }
  .nav-menu .nav-item {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.8s ease;
  }
  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.2s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.3s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.4s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.5s; }
  .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.6s; }
  .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.7s; }

  .nav-item {
    width: 100%;
    padding: 1rem 0;
  }
  .nav-item.has-submenu > a {
    pointer-events: auto;
    display: block;
    padding: 1rem 0;
    width: 100%;
  }
  .nav-item.has-submenu {
    position: relative;
    padding-right: 35px;
    width: 100%;
    padding: 0;
    border-radius: 8px;
    border-top: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
    border-radius: 8px 8px 8px 8px;
  }
  .nav-item.has-submenu.active {
    border-bottom: 0;
  }

  .nav-item-phone,
  .nav-item-addres {
    color: var(--text-dark);
    text-align: right;
    font-size: 16px;
    padding: 0;
    display: block;
  }
  .nav-item a {
    color: var(--text-dark);
  }

  .submenu {
    width: 100%;
    position: static;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--accent-beige);
    margin-top: 0.5rem;
    transition: none;
    border-left: 1px solid var(--accent-green);
    border-right: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
    border-radius: 0px 0px 8px 8px;
    height: 95%;
  }
  .submenu.active {
    display: block;
    animation: slideDown 0.8s ease;
  }
  .submenu li {
    padding: 0.5rem 0;
  }
  .submenu a {
    pointer-events: auto;
    padding: 0.7rem 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }
  .theme-toggle {
    left: 90%;
  }
  .social-icons {
    position: absolute;
    display: flex;
    left: 68%;
    transform: translateX(-50%);
    margin: 0 !important;
  }
  .main {
    top: 0;
    margin-bottom: 30px;
    padding-bottom: 35px;
  }

  .welcome-section {
    margin: 20px auto;
    padding: 15px;
  }
  .welcome-section h1 {
    font-size: 1.8rem;
  }
  .welcome-section p {
    font-size: 0.95rem;
  }
  .welcome-section .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
  .welcome-section .features {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .welcome-section .feature-item {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .slides-container {
    padding-top: 60%;
  }
  .slider-arrow {
    padding: 10px;
    width: 50px;
    height: 50px;
    font-size: 35px;
  }
  .slider-indicators span {
    width: 10px;
    height: 10px;
  }

  .scroll-top {
    width: 50px !important;
    height: 50px !important;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .footer-menu,
  .contact-list {
    justify-content: center;
  }
  .contact-icon {
    display: none;
  }
  .legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .social-compact {
    justify-content: center;
  }

  .category-card {
    padding: 1rem;
  }
  .category-icon {
    font-size: 2rem;
  }
  .dropdown-content.show {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .tooltip {
    font-size: 0.8em;
    max-width: 90vw;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) scale(0.95);
    transform-origin: bottom center;
  }
  .tooltip.active {
    transform: translateX(-50%) scale(1);
  }
  .tooltip-trigger {
    width: 1.5em;
    height: 1.5em;
  }

  .container {
    padding: 10px;
  }
  .review-form input,
  .review-form textarea,
  .review-form button {
    font-size: 14px;
  }
  .rating-buttons {
    flex-direction: column;
  }

  .mobile-header {
    display: block;
  }
  .main {
    margin-bottom: 60px;
  }
  .search-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
  }
  .close-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
  }
  .search-container {
    padding-right: 40px;
    display: none;
  }

  .mobile-search-container {
    display: flex;
    justify-content: center;
    z-index: 9999;
    height: 130px;
    top: -130px;
  }
  .search-btn {
    width: 100%;
    margin: 5px 0 0 0;
  }
  #mobileSearchInput {
    margin-bottom: 15px;
    position: absolute;
    top: -32px;
    width: 100%;
  }
  .search-btn {
    position: absolute;
    top: 75px;
    width: 90%;
  }
  .close-search {
    position: absolute;
    top: 18px;
  }
  .clear-search {
    padding-right: 0px;
    transform: translateY(-145%);
  }

  .order-info {
    font-size: 14px;
  }
  .order-totals .total {
    font-size: 16px;
  }

  .thank-you-container {
    margin: 20px auto;
    padding: 20px;
  }
  .thank-you-icon {
    font-size: 50px;
  }
  h1 {
    font-size: 1.5em;
  }
  .order-details {
    margin: 20px 0;
    padding: 15px;
  }
  .button {
    width: 100%;
    padding: 14px;
  }

  .news {
    padding: 20px 10px;
    background-color: #f9f9f9;
    position: relative;
    top: 0%;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .news h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 28px;
    color: var(--text-dark);
  }
  .news-item {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 5px;
    max-width: 100%;
    width: 100%;
  }

  .quick-links-section {
    padding: 15px;
  }
  .quick-links-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .news-search-container {
    max-width: 100%;
  }
  .year-header {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .year-header h3 {
    font-size: 17px;
    order: 1;
    flex-basis: 70%;
    padding: 10px;
  }
  .toggle-icon {
    order: 2;
  }
  .news-count {
    order: 3;
    margin-left: auto;
    font-size: 12px;
    padding: 2px 8px;
  }
  .quick-links-list li {
    padding: 10px 15px;
  }
  .news-date-badge {
    min-width: 70px;
    margin-right: 10px;
    font-size: 12px;
    padding: 3px 8px;
  }
  .news-title {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
  .news-full h2 {
    font-size: 20px;
    line-height: 1.4;
  }
  .news-date {
    font-size: 14px;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .brand-item {
    padding: 10px;
    height: 85px;
  }

  .steps-container::before {
    display: none;
  }
  .step {
    min-width: 100%;
    margin-bottom: 30px;
  }
  .conditions-grid {
    grid-template-columns: 1fr;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 40px 20px;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .calculator-section {
    padding: 20px;
  }

  .hero-section {
    padding: 50px 20px;
  }
  .telegram-icon {
    position: relative;
    top: 0;
    right: 0;
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }
  .partnership-form,
  .partnership-faq,
  .testimonials-section {
    padding: 30px 20px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .reviews-container {
    grid-template-columns: 1fr;
  }
  .reviews-section {
    padding: 30px 15px;
    margin: 30px 0;
  }
  .review-form-container {
    padding: 20px;
    margin: 20px auto;
  }
  .review-card {
    padding: 20px;
  }
  .user-actions {
    opacity: 1;
  }
}

@media (min-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .welcome-section h1 {
    font-size: 1.5rem;
  }
  .welcome-section p {
    font-size: 0.9rem;
  }

  .dropdown-content {
    grid-template-columns: 1fr;
  }
  .catalog-btn {
    font-size: 1rem;
    padding: 1rem;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .year-header {
    padding: 10px 12px;
  }
  .year-header h3 {
    font-size: 16px;
    flex-basis: 60%;
  }
  .quick-links-list a {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-date-badge {
    margin-right: 0;
    margin-bottom: 8px;
    align-self: flex-start;
  }
  .news-title {
    width: 100%;
    -webkit-line-clamp: 3;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-rating {
    margin-top: 10px;
  }
  .rating-stars span {
    font-size: 1.8rem;
  }
  .form-buttons {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .news-title {
    -webkit-line-clamp: 4;
  }
  .year-header h3 {
    flex-basis: 100%;
  }
  .toggle-icon,
  .news-count {
    margin-top: 5px;
  }
  .quick-links-header h2 {
    font-size: 20px;
  }
  #newsSearch {
    padding: 10px;
    font-size: 14px;
  }
}

/* Дополнительные глобальные настройки */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

.nav-item-addres {
  display: none;
}
.nav-item-phone {
  display: none;
}
.mobile-header-img {
  width: 30px;
  height: 30px;
}
.header-img img,
.social-img img {
  width: 20px;
  height: 20px;
}
.header-img-catalog img {
  width: 23px;
}
.social-img img {
  filter: invert(100%);
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА И СТРАНИЦЫ РАСЧЁТА ========== */
/* Эти стили добавляют функционал модального окна и улучшают внешний вид формы заявки */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  display: flex;
}
.modal-window {
  background: #fff;
  border-radius: 5px;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 35px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.25s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  background: var(--primary-dark);
  color: white;
  padding: 1.2rem 1.8rem;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  color: white;
  margin: 0;
  font-size: 1.6rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.2);
}
.modal-body {
  padding: 1.8rem;
}
.prefill-note {
  background: var(--accent-beige);
  border-radius: 20px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  border-left: 4px solid var(--accent-green);
}
.form-group-modal {
  margin-bottom: 1.2rem;
}
.form-group-modal label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}
.form-group-modal input,
.form-group-modal textarea,
.form-group-modal select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfdfed;
  border-radius: 16px;
  font-size: 0.95rem;
  transition: 0.2s;
  background: #fff;
}
.form-group-modal input:focus,
.form-group-modal textarea:focus {
  border-color: var(--accent-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.2);
}
.form-group-modal textarea{
    height: 235px;
}
.form-status {
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  border-radius: 40px;
}
.status-success {
  background: #e3f7e5;
  color: #2b6e3b;
}
.status-error {
  background: #fee8e8;
  color: #b53b3b;
}
/* Дополнительная стилизация для layout-option selected (если нужно переопределить) */
.layout-option.selected {
  border: 2px solid var(--accent-green);
  background: #eef5e5;
  transform: scale(0.98);
}
/* Стили для сообщения об успешной отправке внутри модалки */
.form-status {
  display: none;
}
/* Адаптив модалки */
@media (max-width: 550px) {
  .modal-window {
    width: 95%;
    border-radius: 24px;
  }
  .modal-header h3 {
    font-size: 1.3rem;
  }
}