@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --primary: #1e88e5;
  --secondary: #1565c0;
  --accent: #ffd600;
  --bg: #f5f7fa;
  --text: #222;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(30, 136, 229, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #e3f0ff 0%, #f5f7fa 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 24px 0 12px 0;
  border-bottom: 2px solid var(--accent);
}
header h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(21,101,192,0.13);
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-top: 12px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary) 60%, var(--secondary) 100%);
  color: #fff;
  padding: 80px 20px 60px 20px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 350px;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
.hero-content {
  position: relative;
  display: inline-block;
  background: rgba(21, 101, 192, 0.82);
  padding: 44px 38px 32px 38px;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(30, 136, 229, 0.22);
  margin: 0 auto;
  z-index: 1;
  backdrop-filter: blur(2px);
  animation: fadeInUp 1.1s cubic-bezier(.23,1.01,.32,1) both;
}
.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0,0,0,0.22);
  margin-bottom: 18px;
  letter-spacing: 1px;
  animation: fadeIn 1.2s 0.2s both;
}
.hero-content p {
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
  margin-bottom: 28px;
  animation: fadeIn 1.3s 0.4s both;
}
.btn {
  background: linear-gradient(90deg, var(--accent) 60%, #fff700 100%);
  color: var(--secondary);
  padding: 14px 38px;
  border: none;
  border-radius: 32px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.13);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
  animation: fadeIn 1.4s 0.6s both;
}
.btn:hover {
  background: linear-gradient(90deg, var(--secondary) 60%, var(--primary) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

section {
  margin: 48px auto;
  max-width: 900px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.1s cubic-bezier(.23,1.01,.32,1) both;
}
section:not(:first-of-type)::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.08;
}
section h2 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 1.7rem;
}

.about p {
  font-size: 1.1rem;
}

.about-list {
  margin: 18px 0 12px 0;
  padding-left: 22px;
  color: #234;
  font-size: 1.08rem;
}
.about-list li {
  margin-bottom: 7px;
  line-height: 1.5;
  list-style: disc inside;
}
.about-quote {
  margin: 18px 0 0 0;
  padding: 14px 22px;
  background: linear-gradient(90deg, #e3f0ff 0%, #f5f7fa 100%);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  font-style: italic;
  color: var(--secondary);
  font-size: 1.13rem;
  box-shadow: 0 2px 8px rgba(30,136,229,0.06);
}

.services {
  margin-top: 24px;
}
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
}
.services li {
  background: var(--bg);
  padding: 18px 28px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.05);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
}
.service-card {
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(30,136,229,0.10);
  padding: 28px 24px 22px 24px;
  max-width: 320px;
  min-width: 240px;
  flex: 1 1 260px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
  border: 1.5px solid #e3eafc;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(30,136,229,0.16);
  border-color: var(--primary);
}
.service-icon {
  font-size: 2.3rem;
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  filter: drop-shadow(0 2px 8px rgba(30,136,229,0.10));
}
.service-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 700;
}
.service-card p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.ses ul {
  margin-bottom: 18px;
}
.ses li {
  margin-bottom: 6px;
}
.ses form {
  margin-top: 18px;
}
.ses textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
  resize: vertical;
}
.ses button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.ses button:hover {
  background: var(--secondary);
}

.catalog {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
}
.product-card {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30, 136, 229, 0.10);
  padding: 22px 28px 18px 28px;
  margin: 0;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  border: 1.5px solid #e3eafc;
  overflow: hidden;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(30, 136, 229, 0.18);
  border-color: var(--primary);
}
.product-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(30,136,229,0.09);
}
.product-card h3 {
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-icon {
  font-size: 1.2em;
  margin-right: 2px;
  filter: drop-shadow(0 2px 8px rgba(30,136,229,0.10));
}
.product-card p {
  margin-bottom: 10px;
  color: #444;
}
.price {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card button {
  background: linear-gradient(90deg, var(--accent) 60%, #fff700 100%);
  color: var(--secondary);
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
}
.product-card button:hover {
  background: linear-gradient(90deg, var(--secondary) 60%, var(--primary) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.catalog-note {
  margin: 22px auto 0 auto;
  text-align: center;
  color: #888;
  font-size: 1.05rem;
  opacity: 0.85;
}

.feedback form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feedback input, .feedback textarea {
  border-radius: 8px;
  border: 1.5px solid #cfd8dc;
  padding: 10px;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.feedback input:focus, .feedback textarea:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(30,136,229,0.10);
  outline: none;
}
.feedback button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.feedback button:hover {
  background: var(--secondary);
}

.contact a {
  color: var(--primary);
  text-decoration: underline;
}
.map iframe {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.08);
}

footer {
  text-align: center;
  padding: 32px 0 18px 0;
  color: #888;
  background: linear-gradient(90deg, #e3f0ff 0%, #f5f7fa 100%);
  font-size: 1.05rem;
  border-top: 2px solid var(--accent);
  letter-spacing: 0.5px;
}

/* --- Декоративные плавающие круги --- */
.floating-decor {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  top: 0; left: 0; width: 100vw; height: 100vh;
  overflow: hidden;
}
.floating-decor::before, .floating-decor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.13;
  filter: blur(2px);
  animation: floatDecor 18s linear infinite alternate;
}
.floating-decor::before {
  width: 220px; height: 220px;
  left: 5vw; top: 12vh;
  background: radial-gradient(circle at 30% 30%, var(--primary) 60%, transparent 100%);
  animation-delay: 0s;
}
.floating-decor::after {
  width: 160px; height: 160px;
  right: 8vw; bottom: 10vh;
  background: radial-gradient(circle at 70% 70%, var(--accent) 60%, transparent 100%);
  animation-delay: 6s;
}
@keyframes floatDecor {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.08); }
}

/* --- Reveal анимация для секций и карточек --- */
section, .product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.23,1.01,.32,1), transform 0.8s cubic-bezier(.23,1.01,.32,1);
}
section.visible, .product-card.visible {
  opacity: 1;
  transform: none;
}

/* --- Анимация появления и отклонения блока feedback --- */
.special-anim {
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(.23,1.01,.32,1),
              transform 0.8s cubic-bezier(.23,1.01,.32,1);
}
.special-anim.visible {
  opacity: 1;
  transform: none;
}
.special-anim {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
}

/* Эффект отклонения от курсора */
.special-anim.is-hovered {
  transition: transform 0.18s cubic-bezier(.23,1.01,.32,1);
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 12px;
  }
  section {
    padding: 18px 6px;
  }
  .product-card {
    max-width: 100%;
    padding: 12px 4px 10px 4px;
  }
  .hero {
    padding: 36px 4px 24px 4px;
    min-height: 180px;
  }
  .hero-content {
    padding: 16px 4px 12px 4px;
  }
  .hero-content h2 {
    font-size: 1.3rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-list {
    font-size: 1rem;
    padding-left: 12px;
  }
}
@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .service-card {
    max-width: 100%;
    min-width: 0;
  }
  .ses-flex {
    flex-direction: column;
    gap: 18px;
  }
  .ses-form-block {
    max-width: 100%;
    margin: 0;
  }
  .catalog-grid {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .product-card {
    max-width: 100%;
    padding: 12px 4px 10px 4px;
  }
}

.catalog-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-top: 24px;
}
.carousel-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,136,229,0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  z-index: 2;
  margin: 0 8px;
  opacity: 0.85;
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: scale(1.08);
}
.catalog-grid.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 900px;
  width: 100%;
  padding: 8px 0;
}
.product-card {
  flex: 0 0 320px;
  max-width: 320px;
  min-width: 260px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30, 136, 229, 0.10);
  padding: 22px 28px 18px 28px;
  margin: 0;
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  border: 1.5px solid #e3eafc;
  overflow: hidden;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
@media (max-width: 900px) {
  .catalog-grid.carousel-track {
    max-width: 100vw;
    gap: 18px;
  }
  .product-card {
    flex: 0 0 80vw;
    max-width: 90vw;
    min-width: 220px;
  }
}

/* Кнопки */
.btn {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  background: #1e90ff;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.btn:hover, .btn:focus {
  background: #156fc1;
}
.btn-auth {
  margin-left: 8px;
  background: #fff;
  color: #1e90ff;
  border: 1px solid #1e90ff;
}
.btn-auth:hover, .btn-auth:focus {
  background: #e6f0fa;
}
.btn-cart {
  background: #ffb300;
  color: #222;
  margin-left: 8px;
}
.btn-buy {
  width: 100%;
  margin-top: 8px;
  background: #43a047;
}
.btn-buy:hover, .btn-buy:focus {
  background: #357a38;
}
.btn-modal {
  width: 100%;
  margin-top: 12px;
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}
.modal[style*="block"] {
  display: flex !important;
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: modalIn .25s;
}
@keyframes modalIn {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.7rem;
  color: #888;
  cursor: pointer;
  transition: color .2s;
}
.close:hover, .close:focus {
  color: #1e90ff;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3rem;
  color: #1e90ff;
}
.modal-content form input,
.modal-content form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  font-size: 1rem;
}
.modal-content form input:focus,
.modal-content form textarea:focus {
  border-color: #1e90ff;
  outline: none;
}

/* Корзина */
#cartItems {
  margin-bottom: 10px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1rem;
}
.cart-item-title {
  flex: 1;
}
.cart-item-qty {
  margin: 0 8px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #e53935;
  font-size: 1.2rem;
  cursor: pointer;
}
#cartTotal {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: right;
}

/* Уведомления */
.notify {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  min-width: 180px;
  background: #43a047;
  color: #fff;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  display: none;
  animation: fadeIn .3s;
}
@keyframes fadeIn {
  from { opacity: 0; right: 0;}
  to { opacity: 1; right: 24px;}
}

/* Каталог */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(30,144,255,0.07);
  padding: 18px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: 0 4px 18px rgba(30,144,255,0.13);
}
.product-img {
  width: 100%;
  max-width: 120px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.product-icon {
  font-size: 1.2em;
}
.price {
  font-weight: bold;
  color: #43a047;
  margin-bottom: 6px;
}

/* Адаптивность */
@media (max-width: 600px) {
  .modal-content {
    min-width: 90vw;
    padding: 18px 6vw 18px 6vw;
  }
  .catalog-grid {
    gap: 12px;
  }
  .auth-cart {
    flex-direction: column;
    gap: 6px;
  }
}
