:root {
  --color-bg: #050816;
  --color-surface: #0b1020;
  --color-surface-alt: #10162a;
  --color-primary: #00d8b4;
  --color-primary-soft: rgba(0, 216, 180, 0.14);
  --color-accent: #ffd369;
  --color-text: #f5f7ff;
  --color-muted: #a3acc4;
  --color-border: #212842;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --radius-base: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #182943 0, #050816 52%, #02030a 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: radial-gradient(circle at 20% 20%, #ffffff 0, #00d8b4 35%, #008a7d 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #02030a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(15, 22, 51, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: var(--transition-fast);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 0.35rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-text);
}

.nav-list a:hover::after {
  width: 100%;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.hero-bullets li {
  font-size: 0.9rem;
  color: var(--color-text);
  position: relative;
  padding-left: 1.25rem;
}

.hero-bullets li + li {
  margin-top: 0.4rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  transform: translateY(6px);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #131b33 0, #050816 55%, #050816 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(150deg, rgba(16, 22, 42, 0.96), rgba(6, 11, 28, 0.96));
  border-radius: var(--radius-base);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-fast);
}

.card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.card-link {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 216, 180, 0.45);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.two-col img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.news-card {
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: var(--radius-base);
  background: radial-gradient(circle at top left, rgba(0, 216, 180, 0.06), rgba(10, 15, 37, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.news-card h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.news-card p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.news-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.news-cta {
  margin-top: 1.4rem;
  text-align: center;
}

.cta-section {
  background: linear-gradient(115deg, #0f172a, #111827);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner p {
  color: var(--color-muted);
  margin: 0.4rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(120deg, var(--color-primary), #00f0c8);
  color: #031214;
  box-shadow: 0 12px 35px rgba(0, 216, 180, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 40px rgba(0, 216, 180, 0.55);
}

.btn.ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(0, 216, 180, 0.5);
}

.btn.link {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-primary);
  box-shadow: none;
}

.btn.link:hover {
  transform: none;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: #050816;
  padding: 2.4rem 0 1.4rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.seo-tail {
  opacity: 0.32;
  max-width: 360px;
}

/* Products page */

.page-hero {
  padding: 3rem 0 1.75rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 640px;
}

.filters-bar {
  margin: 1.8rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filters-bar label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.filters-bar select {
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: linear-gradient(150deg, rgba(16, 22, 42, 0.96), rgba(6, 11, 28, 0.96));
  border-radius: var(--radius-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.product-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.4rem 0 0.7rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.product-tag {
  padding: 0.17rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 216, 180, 0.08);
  color: var(--color-primary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.product-price {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: var(--color-muted);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* About page */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.timeline {
  margin: 2rem 0 0;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
}

.timeline-item {
  margin-bottom: 1.4rem;
}

.timeline-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.team-card {
  text-align: center;
  padding: 1.3rem 1rem 1.4rem;
  border-radius: var(--radius-base);
  background: radial-gradient(circle at top, rgba(0, 216, 180, 0.07), rgba(6, 11, 26, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(0, 216, 180, 0.7);
}

.team-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.team-bio {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 2.2rem;
}

.contact-card {
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--radius-base);
  background: radial-gradient(circle at top left, rgba(0, 216, 180, 0.08), rgba(5, 10, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-card p {
  margin-top: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.form-field label {
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.9rem;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  background: rgba(9, 12, 28, 0.98);
  color: var(--color-text);
  font-size: 0.88rem;
  resize: vertical;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(0, 216, 180, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 216, 180, 0.4);
}

.form-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.contact-info-block {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-base);
  background: rgba(7, 10, 24, 0.96);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}

.contact-info-block h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-info-block p {
  margin: 0.15rem 0;
  color: var(--color-muted);
}

.map-placeholder {
  margin-top: 1.2rem;
  border-radius: var(--radius-base);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.error-message {
  color: #ff7b7b;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.success-message {
  color: #5af5c3;
  font-size: 0.8rem;
}

/* Utilities */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.17rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
}

.page-main {
  padding-bottom: 2.5rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .cards-grid,
  .news-grid,
  .catalog-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.65rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 110%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(5, 8, 22, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .page-hero {
    padding-top: 2.5rem;
  }

  .filters-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid,
  .news-grid,
  .catalog-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}


