/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #14181f;
  --dark-2: #1c212b;
  --ink: #1b1f27;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-muted: #f5f6f8;
  --accent: #ff7a30;
  --accent-dark: #e8621b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.08);
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }

.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--dark); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: #ffb47e; }

.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 760px;
  margin-bottom: 48px;
}
.section__title--light { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,122,48,.35); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { width: 30px; height: 30px; color: var(--ink); flex-shrink: 0; }
.logo__text { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo__accent { color: var(--accent); }
.logo--footer .logo__icon { color: #fff; }
.logo--footer .logo__text { color: #fff; }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent-dark); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-dark); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 76px;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav__phone { color: var(--accent-dark) !important; }
.mobile-nav__cta { border-bottom: none; text-align: center; margin-top: 12px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,18,24,.92) 20%, rgba(15,18,24,.72) 55%, rgba(15,18,24,.45) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 100px 24px; max-width: 760px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 20px; }
.hero__lead { font-size: 18px; opacity: .88; max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; font-size: 14px; opacity: .8; }
.hero__stats li span { font-size: 24px; font-weight: 800; color: #fff; opacity: 1; margin-bottom: 4px; }

/* ===== Grid ===== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Advantage cards ===== */
.adv-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.adv-card__icon {
  width: 52px; height: 52px;
  color: var(--accent);
  margin-bottom: 18px;
}
.adv-card__icon svg { width: 100%; height: 100%; }
.adv-card h3 { font-size: 18px; margin-bottom: 10px; }
.adv-card p { color: var(--muted); font-size: 15px; }

/* ===== Services ===== */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-card img { height: 170px; width: 100%; object-fit: cover; }
.service-card__body { padding: 22px; }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* ===== About / production ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 15px;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
}
.checklist li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.about__stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.about__stats div { display: flex; flex-direction: column; }
.about__stats strong { font-size: 20px; color: var(--accent-dark); }
.about__stats span { font-size: 13px; color: var(--muted); }
.about__image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Process ===== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.process__step { background: var(--dark-2); padding: 36px 30px; }
.process__num { font-size: 15px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.process__step h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.process__step p { color: #a7adb8; font-size: 14.5px; }

/* ===== Portfolio ===== */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card__img { position: relative; height: 220px; overflow: hidden; }
.portfolio-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover .portfolio-card__img img { transform: scale(1.06); }
.portfolio-card__count {
  position: absolute; top: 14px; right: 14px;
  background: rgba(20,24,31,.72);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.portfolio-card__body { padding: 20px 22px 24px; }
.portfolio-card__body h3 { font-size: 17px; margin-bottom: 6px; }
.portfolio-card__body p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.portfolio-card__area {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff1e8;
  padding: 4px 12px;
  border-radius: 999px;
}
.portfolio-card[hidden] { display: none; }

/* ===== Company cards ===== */
.company-card {
  padding: 30px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.company-card h3 { font-size: 17px; margin-bottom: 10px; }
.company-card p { color: var(--muted); font-size: 14.5px; }

/* ===== Request form ===== */
.request { background: var(--dark); color: #fff; }
.request__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.request__lead { color: #b7bcc6; font-size: 16px; margin-bottom: 28px; max-width: 460px; }
.request__contacts a { display: block; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.request__contacts a:hover { color: var(--accent); }

.request-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.request-form h3 { font-size: 20px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
  cursor: pointer;
}
.consent input { margin-top: 3px; }

.request-form__note { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; color: #1f9d55; font-weight: 600; }

/* ===== Footer ===== */
.footer { background: var(--dark-2); color: #c4c8d1; padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__col p, .footer__col a { font-size: 14.5px; margin-bottom: 12px; }
.footer__col a { display: block; }
.footer__col a:hover { color: #fff; }
.footer__col--brand p { color: #8b909c; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer .logo--footer { margin-bottom: 16px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 24px;
  font-size: 13px;
  color: #767b87;
}

/* ===== Floating actions ===== */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-btn svg { width: 26px; height: 26px; }
.floating-btn--whatsapp { background: #25D366; }
.floating-btn--call { background: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,12,16,.94);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 88vw; max-height: 82vh; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 24px; right: 32px;
  font-size: 36px; color: #fff; line-height: 1;
}
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: #fff;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.lightbox__arrow:hover { background: rgba(255,255,255,.18); }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }
.lightbox__counter {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; opacity: .75;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__image { order: -1; }
  .request__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .header__actions .btn--accent { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--4, .services-grid, .portfolio-grid, .process { grid-template-columns: 1fr; }
  .hero__content { padding: 70px 20px; }
  .hero__stats { gap: 26px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .lightbox__arrow { width: 42px; height: 42px; }
  .lightbox__arrow--prev { left: 10px; }
  .lightbox__arrow--next { right: 10px; }
}
