/* =========================================
   BASE & RESET
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:    #f5a623;
  --accent-dk: #d4881a;
  --dark:      #111418;
  --dark2:     #1c2128;
  --dark3:     #252d38;
  --text:      #e8eaed;
  --text-muted:#8b95a1;
  --white:     #ffffff;
  --wa-green:  #25d366;
  --wa-green-dk:#1da851;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,.35);
  --transition:0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  color: var(--white);
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-title--light {
  color: var(--white);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  color: var(--dark);
}

.btn--primary:hover {
  background: var(--accent-dk);
  box-shadow: 0 4px 14px rgba(245, 166, 35, .4);
}

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--white);
}

.btn--whatsapp:hover {
  background: var(--wa-green-dk);
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}

.btn--telegram {
  background: #2AABEE;
  color: #fff;
}

.btn--telegram:hover {
  background: #1d96d4;
  box-shadow: 0 4px 14px rgba(42, 171, 238, .4);
}

.btn--max {
  background: #6a3de8;
  color: #fff;
}

.btn--max:hover {
  background: #5a31cc;
  box-shadow: 0 4px 14px rgba(106, 61, 232, .4);
}

.btn--avito {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ececec;
  border: 1px solid rgba(255,255,255,.22);
  color: black;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--avito:hover {
  background: #cecece;
  border-color: rgba(255,255,255,.4);
}

.contact__avito {
  margin-top: 18px;
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  width: 140px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 20, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--white);
}

.header__logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.header__logo small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.header__phone {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.header__phone:hover {
  color: var(--accent-dk);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background:
    linear-gradient(160deg, rgba(17,20,24,0.75) 0%, rgba(28,33,40,0.85) 100%),
    url('images/Manipulyator_main.jpg') center / cover no-repeat;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero__sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__machines {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 110px;
  gap: 2px;
}

.hero__machine-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__machine-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.hero__machine-spec {
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
}

.hero__coverage {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero__coverage-label {
  font-size: 0.83rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero__coverage-cities-line {
  font-size: 0.99rem;
  color: rgba(255, 255, 255, 0.63);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero__coverage-note {
  font-size: 0.74rem;
  color: rgba(255,255,255,.28);
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: 72px 0;
  background: var(--dark2);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* =========================================
   CARD
   ========================================= */
.card {
  background: var(--dark3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__img-wrap img {
  transform: scale(1.04);
}

.card__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.card__machine {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.card__specs {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.card__specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card__specs span {
  color: var(--text-muted);
}

.card__specs strong {
  color: var(--white);
  font-weight: 600;
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
  padding: 72px 0;
  background: var(--dark);
}

.pricing__table {
  max-width: 700px;
  margin: 0 auto 36px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}

.pricing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 16px;
}

.pricing__row:last-child {
  border-bottom: none;
}

.pricing__row:nth-child(odd) {
  background: var(--dark2);
}

.pricing__row:nth-child(even) {
  background: var(--dark3);
}

.pricing__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.pricing__name small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.pricing__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pricing__note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.pricing__cta {
  text-align: center;
}

/* =========================================
   WORKS (виды работ)
   ========================================= */
.works {
  padding: 72px 0;
  background: var(--dark3);
}

.works__single {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}

.works__tag {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.4;
}

/* =========================================
   COVERAGE (зона обслуживания)
   ========================================= */
.coverage {
  padding: 64px 0;
  background: var(--dark2);
  text-align: center;
}

.coverage__intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

.coverage__cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.coverage__city {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.coverage__city--main {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.coverage__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery {
  padding: 72px 0;
  background: var(--dark);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--dark2);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: 72px 0;
  background: var(--dark2);
  text-align: center;
}

.contact__region {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

.contact__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 24px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255,255,255,.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,.28);
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 480px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================
   SEO TEXT
   ========================================= */
.seo-text {
  padding: 52px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.seo-text .container {
  max-width: 960px;
}

.seo-text__heading {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

.seo-text__subheading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 24px;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 3px solid rgba(245,166,35,.35);
}

.seo-text__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 14px;
}

/* =========================================
   RESPONSIVE — TABLET  (≥ 600px)
   ========================================= */
@media (min-width: 600px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   RESPONSIVE — DESKTOP  (≥ 900px)
   ========================================= */
@media (min-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
