:root {
  --green: #439539;
  --blue: #1d71b8;
  --black: #1a1a1a;
  --gray: #5a5a5a;
  --light: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--blue);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero h1 span {
  color: var(--blue);
}

.hero__text {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #155a94;
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

.feature-card:nth-child(even) {
  border-left-color: var(--blue);
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--light);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
}

.section__subtitle {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.product-card__title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.product-card__specs {
  flex: 1;
  margin-bottom: 1.2rem;
}

.product-card__specs li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.product-card__specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
}

.product-card .btn {
  width: 100%;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.section--gray .stat {
  background: var(--white);
}

.stat__num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--gray);
}

.about__list {
  margin-top: 1.5rem;
}

.about__list li {
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--gray);
  font-size: 0.95rem;
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section--gray .contact-card {
  background: var(--white);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--blue);
}

.contact-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-item a {
  color: var(--blue);
}

.contact-item a:hover {
  text-decoration: underline;
}

.map-placeholder {
  background: var(--light);
  border-radius: var(--radius);
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  border: 1px dashed #ccc;
}

/* Footer */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--white);
  text-decoration: underline;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(420px, 100%);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.modal h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.modal__product {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}

.form-message {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: #c0392b;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  z-index: 99;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 4%;
  font-weight: 500;
  color: var(--gray);
}

.nav-mobile a:hover {
  color: var(--blue);
  background: var(--light);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero__features {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 60px 0;
  }
}
