
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(to bottom, #f0f6fb, #ffffff);
  color: #0a2540;
}

header, section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

h1, h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery img {
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 220px;
  height: auto;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

details summary {
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 10px;
}

details {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.why-us .features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.feature {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about p {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-size: 1rem;
  line-height: 1.6;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

button {
  padding: 12px;
  background: #0a2540;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #163d5e;
}

.map {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
}

/* Анимации */
.gallery img, .feature, .cert-logos img {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}
.gallery img:nth-child(1) { animation-delay: 0.1s; }
.gallery img:nth-child(2) { animation-delay: 0.2s; }
.gallery img:nth-child(3) { animation-delay: 0.3s; }
.gallery img:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Сертификаты */
.certs {
  text-align: center;
}
.cert-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.cert-logos img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .features, .gallery, .cert-logos {
    flex-direction: column;
    align-items: center;
  }
  .feature, .gallery img {
    width: 90%;
  }
  .product-section details {
    padding: 15px;
  }
  h1, h2 {
    font-size: 1.5rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}
.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.contact-box {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}
.contact-box form {
  flex: 1 1 300px;
}
.contact-box .map {
  flex: 1 1 300px;
}
@media (max-width: 768px) {
  .contact-box {
    flex-direction: column;
  }
}

.caption {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
  color: #333;
}

.modal-controls {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
}
.modal-controls button {
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 2rem;
  margin: 0 20px;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 10px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.item img {
  width: 220px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s;
  cursor: pointer;
}
.item img:hover {
  transform: scale(1.05);
}
.caption {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
  color: #333;
}

.modal-caption {
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 15px;
}

input[type="tel"] {
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}
input[type="tel"]:focus {
  border-color: #0077cc;
  box-shadow: 0 0 6px rgba(0,119,204,0.4);
  outline: none;
}


input[type="tel"] {
  padding: 14px 16px;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fdfdfd;
}
input[type="tel"]:focus {
  border-color: #3399ff;
  box-shadow: 0 0 6px rgba(51,153,255,0.3);
  outline: none;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #0a2540;
  margin-bottom: 10px;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
  background: #f1f1f1;
  margin-top: 40px;
}

header {
  background: linear-gradient(to right, #0a2540, #184d80);
  padding: 20px;
  color: white;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo-title span {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.footer {
  background: #0a2540;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  margin-top: 40px;
  border-top: 4px solid #184d80;
}

.main-nav {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: #ffcc00;
}

html {
  scroll-behavior: smooth;
}
.main-nav a.active {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.main-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
    display: none;
    background: #0a2540;
    margin-top: 10px;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav-toggle {
    display: block;
    text-align: center;
    margin-top: 10px;
  }
}

.main-nav {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.main-nav.active {
  opacity: 1;
  transform: translateY(0);
}

header.scrolled {
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  background-color: #0a2540;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
#scrollTopBtn:hover {
  background-color: #184d80;
}
#form-msg {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

#form-msg.success {
  background-color: #28a745;
}
#form-msg.error {
  background-color: #dc3545;
}
#form-msg::before {
  content: "✔ ";
  font-weight: bold;
  margin-right: 5px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0a2540;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.callback-section {
  padding: 60px 20px;
  background: #f2f5f8;
  text-align: center;
}
.callback-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.callback-section p {
  margin-bottom: 20px;
}
.callback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}
.callback-form input, .callback-form button {
  padding: 12px;
  font-size: 16px;
}
.form-msg {
  margin-top: 10px;
  font-size: 14px;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #0a2540;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}
.dark-theme {
  --bg-color: #0a2540;
  --text-color: #ffffff;
}
button, input, textarea {
  background: #fff;
  color: #000;
}
.dark-theme button,
.dark-theme input,
.dark-theme textarea {
  background: #1f3b5b;
  color: #fff;
  border-color: #444;
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6, 
.dark-theme p, 
.dark-theme a, 
.dark-theme span, 
.dark-theme label, 
.dark-theme li, 
.dark-theme td, 
.dark-theme th,
.dark-theme .form-msg,
.dark-theme .contact-box,
.dark-theme .callback-section,
.dark-theme .product-grid,
.dark-theme .certificates,
.dark-theme .footer {
  color: #ffffff !important;
}

.dark-theme .container,
.dark-theme .product-card,
.dark-theme .callback-form input,
.dark-theme .callback-form textarea,
.dark-theme .callback-form button {
  background-color: #1f3b5b;
  color: #ffffff !important;
}

.dark-theme .product-card:hover {
  background-color: #2b4f77;
}

.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
  color: #cccccc;
}

.dark-theme #theme-toggle {
  background-color: #1f3b5b;
  color: #ffffff;
  border: 1px solid #444;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: var(--bg-color);
}
.navbar-logo {
  font-size: 20px;
  font-weight: bold;
}
.navbar-menu {
  display: flex;
  gap: 20px;
}
.navbar-menu a {
  text-decoration: none;
  color: var(--text-color);
}
.navbar-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-color);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
}
.navbar-menu {
  display: flex;
  gap: 20px;
}
.navbar-menu a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.navbar-menu a:hover {
  color: var(--accent-color);
}
.navbar-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
}
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-color);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
}

.dark-theme .navbar,
.dark-theme .navbar-menu,
.dark-theme .navbar-toggle,
.dark-theme .navbar-logo,
.dark-theme .navbar-menu a {
  background-color: #0a2540;
  color: #ffffff !important;
}
.dark-theme .navbar-menu a:hover {
  color: #cccccc;
}

.navbar {
  background: linear-gradient(90deg, #0a2540, #1f3b5b);
  font-family: 'Segoe UI', sans-serif;
  padding: 16px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.navbar-logo {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}
.navbar-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}
.navbar-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}
.navbar-menu a:hover {
  color: #aad8ff;
  transform: scale(1.05);
}
.navbar-toggle {
  display: none;
  font-size: 28px;
  color: #ffffff;
  background: none;
  border: none;
}
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: #0a2540;
    position: absolute;
    top: 60px;
    right: 24px;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
}

.product-card .product-title,
.dark-theme .product-card .product-title {
  color: var(--text-color) !important;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}

.theme-btn {
  font-size: 20px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.3s ease;
}
.theme-btn:hover {
  transform: scale(1.2);
}
.navbar-menu {
  max-height: 80vh;
  overflow-y: auto;
}

.dark-theme {
  --bg-color: #0d1b2a;
  --text-color: #f1f1f1;
  --accent-color: #7fc6ff;
}

.dark-theme body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dark-theme .navbar {
  background: linear-gradient(90deg, #06101d, #0d1b2a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.dark-theme .navbar-menu {
  background-color: #0d1b2a;
}

.dark-theme .navbar-menu a,
.dark-theme .navbar-logo,
.dark-theme .navbar-toggle,
.dark-theme .theme-btn {
  color: var(--text-color);
}

.dark-theme .navbar-menu a:hover {
  color: var(--accent-color);
}

.dark-theme .product-card {
  background-color: #152c42;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.dark-theme .callback-section,
.dark-theme .contact-box {
  background-color: #14273c;
  color: var(--text-color);
}

.dark-theme input,
.dark-theme textarea,
.dark-theme button {
  background-color: #1f3b5b;
  color: #ffffff;
  border: 1px solid #555;
}

.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
  color: #cccccc;
}

@media (min-width: 769px) {
  .navbar {
    display: none;
  }
}

.site-header {
  background: #ffffff;
  padding: 16px 24px;
  font-size: 22px;
  font-weight: bold;
  color: #0a2540;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .site-header {
    display: none;
  }
}

.site-header {
  background: linear-gradient(90deg, #0a2540, #1f3b5b);
  padding: 20px 40px;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  letter-spacing: 1px;
  border-bottom: 2px solid #aad8ff;
}

.site-header {
  background: linear-gradient(90deg, #0a2540, #1f3b5b);
  padding: 20px 40px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header-inner {
  text-align: center;
}
.site-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.site-icon {
  width: 36px;
  height: 36px;
}
.site-title {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
}
.site-tagline {
  font-size: 14px;
  margin-top: 6px;
  color: #aad8ff;
}

.site-header.shrink {
  padding: 10px 40px;
  transition: all 0.3s ease;
}
.site-header.shrink .site-title {
  font-size: 20px;
}
.site-header.shrink .site-icon {
  width: 28px;
  height: 28px;
}

/* Обновлённая цветовая гамма */
.site-header {
  background: #ffffff;
  color: #222222;
  border-bottom: 2px solid #d1e6f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.site-title {
  color: #0a2540;
}
.site-tagline {
  color: #5081a8;
}
.site-icon {
  filter: grayscale(0%) brightness(0.8);
}

/* Сжатая версия в светлой теме */
.site-header.shrink {
  background: #f5f9fc;
  border-color: #b8d8f2;
}

/* Мобильное меню — светлая гамма */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.navbar-menu {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar-menu a {
  color: #0a2540;
}
.navbar-menu a:hover {
  color: #3182ce;
}
.navbar-toggle {
  color: #0a2540;
}

@media (max-width: 768px) {
  .navbar-menu {
    background: #ffffff !important;
  }
  .navbar-menu a {
    color: #0a2540 !important;
    font-weight: 500;
    font-size: 16px;
  }
  .navbar-menu a:hover {
    color: #0077cc !important;
  }
  .theme-btn {
    color: #0a2540 !important;
  }
}

.site-title {
  display: inline-block;
  font-size: 26px;
  font-weight: bold;
  color: #0a2540;
}
.site-icon {
  width: 36px;
  height: 36px;
  display: inline-block;
}
.site-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 30px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  text-align: center;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.site-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.site-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a2d40;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.site-tagline {
  font-size: 14px;
  color: #4a6b8c;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 24px;
  }
  .site-title {
    font-size: 22px;
  }
  .site-tagline {
    font-size: 13px;
    color: #4a6b8c;
  }
  .site-header-inner {
    text-align: center;
  }
}

.site-header {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.6s ease-out forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-facts {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.fact {
  text-align: center;
}
.fact-number {
  font-size: 32px;
  font-weight: bold;
  color: #0a2540;
}
.fact-label {
  font-size: 14px;
  color: #555;
}
.advantages {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.advantages li {
  margin-bottom: 8px;
  font-size: 15px;
}

#about {
  background: #f9fbfc;
  padding: 60px 20px;
  border-radius: 16px;
  max-width: 1000px;
  margin: 40px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

#about h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0a2540;
}

#about p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.company-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.fact {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  width: 180px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.fact-number {
  font-size: 30px;
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 6px;
}

.fact-label {
  font-size: 14px;
  color: #555;
}

#about h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #0a2540;
}

.advantages {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.advantages li {
  background: #e6f3ff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: #0a2540;
  width: fit-content;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
#contact-form input,
#contact-form textarea {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
#contact-form button {
  padding: 12px;
  background: #0a2540;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}
#contact-form button:hover {
  background: #1c3c60;
}
.form-status {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  color: green;
}

.contact-about {
  background: #f5f9fc;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.contact-about h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #0a2540;
}
.contact-about p {
  font-size: 15px;
  color: #333;
}

.contact-details {
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 15px;
}
.contact-details h3 {
  margin-bottom: 12px;
  color: #0a2540;
}
.contact-details a {
  color: #0077cc;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.contact-wrapper > * {
  flex: 1 1 300px;
  max-width: 480px;
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .site-title {
    display: inline-block !important;
    font-size: 22px;
    color: #1a2d40;
  }
  .site-logo-row {
    justify-content: center;
  }
}

.navbar-logo {
  font-size: 20px;
  font-weight: 600;
  color: #0a2540;
  padding: 12px 16px;
  display: block;
  text-align: left;
}

.navbar-logo-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo-icon {
  width: 28px;
  height: 28px;
}
.navbar-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #0a2540;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #0a2540;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
#scrollToTopBtn:hover {
  background-color: #1c3c60;
  transform: scale(1.1);
}

/* Микроанимации */
.card:hover,
.fact:hover,
.advantages li:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.work-schedule {
  padding: 40px 20px;
  background: #f9fbfc;
  text-align: center;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.work-schedule h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0a2540;
}
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 300px;
}
.schedule-list li {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 15px;
}
.schedule-list li.today {
  background: #e6f3ff;
  color: #0a2540;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-schedule {
  margin-top: 20px;
  background: #f5f9fc;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-schedule h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #0a2540;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}
.contact-column {
  flex: 1 1 300px;
  max-width: 400px;
  background: #f9fbfc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-column h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #0a2540;
}
.contact-column p,
.schedule-list li {
  font-size: 14px;
  color: #333;
  margin: 6px 0;
}
.contact-map iframe {
  width: 100%;
  height: 240px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}
.contact-column {
  flex: 1 1 320px;
  background: #f9fbfc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-column h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #0a2540;
}
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.schedule-list li {
  margin: 4px 0;
  font-size: 14px;
  color: #333;
}
.contact-map iframe {
  width: 100%;
  height: 240px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.contact-tabs {
  max-width: 800px;
  margin: 0 auto;
}
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab-button {
  padding: 10px 16px;
  background: #e6f3ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #0a2540;
}
.tab-button.active {
  background: #0a2540;
  color: white;
}
.tab-content {
  display: none;
  background: #f9fbfc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tab-content.active {
  display: block;
}
#tab-map iframe {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  border: none;
}

.schedule-list li.today {
  background-color: #dbefff;
  font-weight: bold;
  border-left: 4px solid #0a2540;
  padding-left: 10px;
}

.contact-tabs {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-tabs .tab-content {
  text-align: center;
}
.tab-content h3,
.tab-content p,
.tab-content ul {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.tab-content ul.schedule-list {
  display: inline-block;
  text-align: left;
}


#form-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#form-modal.show {
  display: flex;
}
#form-modal .modal-content {
  background: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#form-modal button {
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #0a2540;
  color: #fff;
  cursor: pointer;
}
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #0a2540;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body, .promo-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* 🔥 Горящие предложения - горизонтальный скроллинг */
.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.promo-carousel::-webkit-scrollbar {
  height: 10px;
}
.promo-carousel::-webkit-scrollbar-thumb {
  background-color: #ff8a00;
  border-radius: 5px;
}
.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.promo-card:hover {
  transform: scale(1.03);
}
.promo-image {
  width: 100%;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 180px;
  object-fit: cover;
}
.promo-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.promo-discount {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d60000;
}
.promo-expire {
  font-size: 0.9rem;
  color: #555;
}


/* Стрелки для карусели */
.promo-wrapper {
  position: relative;
}
.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff8f0;
  border: 1px solid #ffae66;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.3s;
}
.promo-arrow:hover {
  background: #ffae66;
  color: white;
}
.promo-arrow-left {
  left: -20px;
}
.promo-arrow-right {
  right: -20px;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
  .promo-arrow {
    display: none;
  }
  .promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
}

/* --- Fixed arrow styling --- */


/* Исправленная верстка стрелок */
.promo-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 40px;
  box-sizing: border-box;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff8f0;
  border: 1px solid #ffae66;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.promo-arrow-left {
  left: 10px;
}
.promo-arrow-right {
  right: 10px;
}

@media (max-width: 768px) {
  .promo-arrow {
    display: none;
  }
}


/* Горящие предложения */
.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.promo-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.promo-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bold;
}
.promo-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.promo-body h5 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.promo-timer {
  font-size: 0.9rem;
  font-weight: 500;
  color: #d00;
}

/* --- WOW Горящие предложения --- */

/* Горящие предложения — ВАУ дизайн */
.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.promo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.promo-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.promo-card:hover .promo-image {
  transform: scale(1.05);
}
.promo-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff3c3c, #ff7b00);
  color: white;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.promo-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.promo-body h5 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
}
.promo-timer {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e60023;
  background: #fff1f3;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
}

/* --- WOW Эффекты --- */

/* WOW эффекты */
@keyframes pulse-timer {
  0% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(230, 0, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0); }
}
@keyframes fire-glow {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(255, 60, 60, 0.5); }
  50% { box-shadow: 0 0 18px 8px rgba(255, 120, 0, 0.7); }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.promo-discount-badge {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(135deg, #ff3c3c, #ff7b00, #ff3c3c);
  background-size: 400% 100%;
}

.promo-timer {
  animation: pulse-timer 2s infinite;
}

/* --- Мягкий вау-дизайн --- */

/* Мягкий вау-дизайн */
@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 100, 100, 0.2); }
  50% { box-shadow: 0 0 15px rgba(255, 150, 100, 0.3); }
}
@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(230, 0, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 0, 35, 0); }
}

.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.promo-discount-badge {
  background: #ff5e57;
  background: linear-gradient(135deg, #ff5e57, #ff9966);
  box-shadow: none;
  animation: none;
}

.promo-timer {
  background: #fef2f2;
  animation: pulse-soft 3s infinite;
  color: #b4001b;
}

/* --- Улучшенная мобильная прокрутка --- */

/* Устойчивый скролл на мобильных устройствах */
.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

/* --- Touch scroll fix for iOS --- */

.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Toggle-блоки вместо <details> --- */

/* Кастомное раскрытие */
.toggle-block {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.toggle-header {
  background: #f6f6f6;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
}
.toggle-content {
  display: none;
  padding: 16px;
  background: #fff;
}
.toggle-block.open .toggle-content {
  display: block;
}

/* --- Scroll Fix for Promo Carousel --- */

.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* --- Кнопка Заказать --- */

/* Кнопка "Заказать" */
.promo-order {
  margin-top: 12px;
}
.btn-order {
  display: inline-block;
  padding: 8px 16px;
  background: #e60023;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-order:hover {
  background: #c4001c;
}

/* --- Scroll-safe карточки с кнопкой --- */

.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

/* --- FORCED Scroll Fix --- */

.promo-carousel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}


.promo-order {
  text-align: center;
  margin-top: 10px;
}

.btn-order {
  display: inline-block;
  background: linear-gradient(to right, #ff6a00, #ee0979);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-order:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.promo-body h5 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.promo-timer {
  font-size: 0.95rem;
  font-weight: bold;
  color: #d9534f;
  margin-top: 5px;
}


.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}


/* Обновлённые карточки акций */
.promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: scale(1.03);
}

.promo-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4e50;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.promo-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-body h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.promo-timer {
  font-size: 0.9rem;
  margin-top: 8px;
  color: #d9534f;
  font-weight: bold;
}

/* Кнопка заказать */
.btn-order {
  display: inline-block;
  background: linear-gradient(to right, #ff6a00, #ee0979);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-order:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
  .promo-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
}


.promo-card:focus,
.promo-card:active,
.promo-card *:focus,
.promo-card *:active {
  outline: none !important;
  box-shadow: none !important;
}

.promo-card {
  will-change: transform;
  overflow: hidden;
}



/* === Красивый стиль карточек продукции === */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  width: 100%;
  padding-top: 70%;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.product-info p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.promo-card {
  transition: transform 0.3s ease;
}
.promo-card:hover {
  transform: scale(1.03);
}
.promo-controls {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 1em;
}
.promo-controls select {
  padding: 6px 10px;
  font-size: 1em;
  border-radius: 6px;
}
