:root {
  --accent: #43b8e0;
  --accent-dark: #224685;
  --bg-soft: #f0f7ff;
  --bg-header: #c9fbff;
  --text-main: #24344d;
  --text-soft: #51627e;
  --card-shadow: 0 12px 32px rgba(34, 70, 133, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

body::before {
  top: 90px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(67, 184, 224, 0.16) 0%, rgba(67, 184, 224, 0) 72%);
}

body::after {
  right: -140px;
  bottom: 120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 70, 133, 0.12) 0%, rgba(34, 70, 133, 0) 70%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background-color: var(--bg-header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.site-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent-dark);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-button,
.cooperation-btn,
.search-button {
  transition: 0.25s ease;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 16px;
}

.nav-button:hover {
  background-color: #18315f;
}

.email-addresses {
  margin-left: auto;
  text-align: right;
}

.email-item {
  color: var(--accent-dark);
  font-size: 14px;
}

.intro-section {
  padding: 80px 0 40px;
  position: relative;
}

.intro-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 184, 224, 0) 0%, rgba(67, 184, 224, 0.45) 50%, rgba(67, 184, 224, 0) 100%);
}

.intro-text h2 {
  color: var(--accent-dark);
  font-size: 34px;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  padding-bottom: 16px;
}

.intro-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.intro-text p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}

.cooperation-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent-dark);
  border: 2px solid var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(34, 70, 133, 0.2);
}

.cooperation-btn:hover {
  color: var(--accent-dark);
  background: transparent;
  transform: translateY(-2px);
}

.carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
}

.carousel-inner {
  height: 400px;
}

.carousel-item,
.slide {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
  position: relative;
}

.brand-wrapper::before {
  content: "";
  position: absolute;
  top: 70px;
  right: 4%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 184, 224, 0.12) 0%, rgba(67, 184, 224, 0) 72%);
  pointer-events: none;
}

.search-form {
  width: min(100%, 640px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 32px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 16px 40px rgba(34, 70, 133, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 2px solid #8ccfe6;
  border-radius: 999px;
  font-size: 16px;
  background: #fff;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(67, 184, 224, 0.15);
}

.search-button {
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover {
  background: #18315f;
  transform: translateY(-1px);
}

.search-helper {
  margin: -14px 0 28px;
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
}

.search-result,
.search-empty {
  width: min(100%, 900px);
  margin-bottom: 24px;
}

.search-result h2,
.search-empty {
  text-align: center;
}

.search-result {
  position: relative;
}

.search-result .product-card {
  max-width: 760px;
  margin: 0 auto;
}

.search-result::after,
.brand-list::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, rgba(34, 70, 133, 0) 0%, rgba(34, 70, 133, 0.18) 20%, rgba(67, 184, 224, 0.28) 50%, rgba(34, 70, 133, 0.18) 80%, rgba(34, 70, 133, 0) 100%);
}

.search-result::after {
  margin: 28px auto 0;
}

.search-empty,
.empty-message {
  color: var(--text-soft);
  font-size: 16px;
}

.brand-list {
  width: min(100%, 960px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.catalog-heading {
  width: min(100%, 960px);
  margin: 0 0 28px;
  text-align: center;
}

.catalog-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-heading h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.brand-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(67, 184, 224, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(67, 184, 224, 0.9) 0%, rgba(34, 70, 133, 0.5) 100%);
  opacity: 0.75;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 184, 224, 0.28);
  box-shadow:
    0 18px 36px rgba(34, 70, 133, 0.12),
    0 6px 14px rgba(67, 184, 224, 0.08);
}

.brand-card.open {
  border-color: rgba(67, 184, 224, 0.3);
  box-shadow:
    0 20px 40px rgba(34, 70, 133, 0.14),
    0 8px 18px rgba(67, 184, 224, 0.1);
}

.brand-info {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  cursor: pointer;
}

.brand-left {
  display: flex;
  justify-content: center;
}

.brand-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-image img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid #d9e7ef;
  margin-bottom: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand-info:hover .brand-image img {
  transform: scale(1.03);
  border-color: var(--accent);
}

.brand-name {
  margin: 0;
  color: var(--accent-dark);
  font-size: 26px;
}

.brand-description p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-main);
}

.brand-toggle {
  margin-top: 18px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #224685, #43b8e0);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 70, 133, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(34, 70, 133, 0.22);
}

.brand-categories {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition:
    max-height 0.45s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease,
    transform 0.35s ease;
}

.brand-categories.show {
  opacity: 1;
  margin-top: 24px;
  transform: translateY(0);
}

.category-card {
  background: #f8fbff;
  border: 1px solid #dbeaf3;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(67, 184, 224, 0.18) 0%, rgba(67, 184, 224, 0) 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.category-card + .category-card {
  margin-top: 16px;
}

.category-name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 28px 0 0;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--accent-dark);
  font-size: 22px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
  appearance: none;
}

.category-name:focus {
  outline: none;
}

.category-name:focus-visible {
  color: #18315f;
}

.category-name::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s ease, color 0.25s ease;
}

.category-card.open .category-name::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent-dark);
}

.category-card.open {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f9ff 100%);
  border-color: rgba(67, 184, 224, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 34px rgba(34, 70, 133, 0.1),
    0 0 0 1px rgba(67, 184, 224, 0.05);
  transform: translateY(-2px);
}

.category-card.open::before {
  opacity: 1;
  transform: translateX(-50%) scale(1.08);
}

.category-card.open .category-name {
  color: #18315f;
  letter-spacing: 0.01em;
}

.product-list {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
  padding-top: 6px;
  transform-origin: top center;
}

.product-list.show {
  display: grid;
  animation: productListReveal 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(67, 184, 224, 0.22);
  border-radius: 22px;
  box-shadow:
    0 10px 30px rgba(18, 44, 91, 0.08),
    0 3px 10px rgba(18, 44, 91, 0.05);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  opacity: 0;
  transform: translateY(24px);
  animation: productCardReveal 0.6s ease forwards;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(67, 184, 224, 0.5);
  box-shadow:
    0 18px 40px rgba(18, 44, 91, 0.14),
    0 8px 20px rgba(67, 184, 224, 0.1);
}

.product-card img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef6fb 100%);
  border: 1px solid rgba(67, 184, 224, 0.12);
}

.product-card h4 {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.product-card p {
  margin: 6px 0;
  color: #4c5d78;
  line-height: 1.55;
  font-size: 15px;
}

.product-list.show .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-list.show .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-list.show .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-list.show .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-list.show .product-card:nth-child(5) { animation-delay: 0.25s; }
.product-list.show .product-card:nth-child(6) { animation-delay: 0.3s; }

.site-footer {
  background-color: var(--bg-header);
  padding: 40px 20px 20px;
  color: var(--accent-dark);
  box-shadow: 0 -2px 10px rgba(34, 70, 133, 0.1);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 60px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 48px));
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 184, 224, 0) 0%, rgba(67, 184, 224, 0.22) 50%, rgba(67, 184, 224, 0) 100%);
  filter: blur(10px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.footer-logo h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.footer-info {
  flex: 3 1 600px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  min-width: 160px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}

.footer-section p,
.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--accent-dark);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(34, 70, 133, 0.8);
  font-weight: 500;
  border-top: 1px solid rgba(34, 70, 133, 0.2);
  padding-top: 15px;
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes productCardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes productListReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@media (max-width: 992px) {
  .header {
    justify-content: center;
    text-align: center;
  }

  .logo-container {
    width: 100%;
    justify-content: center;
  }

  .email-addresses {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .brand-info {
    grid-template-columns: 1fr;
  }

  .brand-left {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  body::before,
  body::after,
  .brand-wrapper::before {
    display: none;
  }

  .header {
    padding: 16px;
  }

  .logo-container {
    gap: 14px;
  }

  .site-title {
    font-size: 24px;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
  }

  .intro-section {
    padding: 48px 0 20px;
  }

  .intro-text {
    text-align: center;
  }

  .intro-text h2 {
    font-size: 28px;
  }

  .intro-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .intro-text p {
    font-size: 16px;
  }

  .cooperation-btn {
    width: 100%;
    text-align: center;
  }

  .carousel-inner {
    height: 250px;
  }

  .search-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .search-input,
  .search-button {
    width: 100%;
  }

  .brand-card {
    padding: 18px;
  }

  .brand-description {
    text-align: center;
  }

  .brand-image img {
    width: 100%;
    max-width: 220px;
  }

  .brand-name {
    font-size: 22px;
  }

  .category-name {
    font-size: 20px;
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 18px;
    border-radius: 18px;
  }

  .catalog-heading h2 {
    font-size: 28px;
  }

  .footer-logo,
  .footer-info {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    gap: 14px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .site-title {
    font-size: 22px;
  }

  .email-item {
    word-break: break-word;
  }

  .search-form {
    padding: 8px;
    gap: 8px;
  }

  .search-input,
  .search-button,
  .brand-toggle,
  .cooperation-btn {
    min-height: 48px;
  }

  .catalog-heading h2 {
    font-size: 24px;
  }

  .brand-card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .category-card {
    padding: 16px 14px;
  }

  .category-name {
    font-size: 18px;
  }

  .product-card h4 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  .site-footer {
    padding: 36px 18px 18px;
  }
}
