/* ПрофиСтрой — строительный лендинг */
:root {
  --color-bg: #f6f4f1;
  --color-surface: #ffffff;
  --color-dark: #1a1d21;
  --color-dark-soft: #2d3239;
  --color-text: #3d4349;
  --color-muted: #6b7280;
  --color-accent: #e85d04;
  --color-accent-hover: #d45103;
  --color-accent-soft: rgba(232, 93, 4, 0.12);
  --color-border: #e5e2dd;
  --font: 'Manrope', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 29, 33, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 29, 33, 0.14);
  --header-h: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26, 29, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
}

.header.is-scrolled { box-shadow: var(--shadow-lg); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.logo__text { font-weight: 700; font-size: 18px; }
.logo__text span { color: var(--color-accent); }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover { color: var(--color-accent); }

.header__phone {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color var(--transition);
}

.header__phone:hover { color: var(--color-accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--light {
  background: #fff;
  color: var(--color-dark);
}

.btn--light:hover { background: var(--color-bg); }

.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(26, 29, 33, 0.92) 0%, rgba(26, 29, 33, 0.65) 55%, rgba(26, 29, 33, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 93, 4, 0.3);
}

.hero__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__title span { color: var(--color-accent); }

.hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stats li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.hero__stats strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section__desc {
  color: var(--color-muted);
  font-size: 17px;
  max-width: 560px;
}

.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; }
.section__head--center .section__desc { margin: 0 auto; }

/* Services */
.services { background: var(--color-surface); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__images {
  position: relative;
  min-height: 420px;
}

.about__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about__img--main {
  width: 85%;
  height: 380px;
  object-fit: cover;
}

.about__img--sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  height: 200px;
  border: 4px solid var(--color-bg);
}

.about__content p {
  margin-bottom: 28px;
  color: var(--color-muted);
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.about__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.about__list strong {
  display: block;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.about__list div { font-size: 14px; color: var(--color-muted); }

/* Portfolio */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-dark-soft);
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio__item:hover img { transform: scale(1.06); }

.portfolio__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(26, 29, 33, 0.5));
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio__item:hover::after { opacity: 1; }

.portfolio__more {
  text-align: center;
  margin-top: 40px;
}

.portfolio__more .btn--outline {
  color: var(--color-dark);
  border-color: var(--color-border);
}

.portfolio__more .btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.portfolio__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--color-muted);
}

/* Process */
.process { background: var(--color-surface); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.process__step {
  position: relative;
  padding: 28px 22px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.process__num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent-soft);
  color: var(--color-accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}

.process__step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.process__step p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 64px 0;
  background: var(--color-dark);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta__text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta__text p { color: rgba(255, 255, 255, 0.7); }

/* Order & Forms */
.order__grid,
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.order__info p,
.contacts__list { color: var(--color-muted); margin-bottom: 24px; }

.order__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  transition: color var(--transition);
}

.order__link svg { width: 24px; height: 24px; color: var(--color-accent); }
.order__link:hover { color: var(--color-accent); }

.form {
  background: var(--color-surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.form--compact { padding: 28px; }

.form__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: block;
  margin-bottom: 18px;
}

.form__field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form__field textarea { resize: vertical; min-height: 100px; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
}

.form__checkbox input {
  margin-top: 3px;
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.form__status.is-success { color: #059669; }
.form__status.is-error { color: #dc2626; }

.form.is-loading button { opacity: 0.7; pointer-events: none; }

.contacts__list li {
  margin-bottom: 20px;
}

.contacts__list strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.contacts__list a {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
}

/* FAQ */
.faq { background: var(--color-surface); }

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  padding: 22px 0;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq__item[open] summary::after { content: '−'; }

.faq__item p {
  padding: 0 0 22px;
  color: var(--color-muted);
  font-size: 15px;
}

/* Footer */
.footer {
  background: var(--color-dark);
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo--footer .logo__text { color: #fff; }

.footer__copy { font-size: 14px; }

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 14px;
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--color-accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 32px;
  color: #fff;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 36px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__nav:hover { background: var(--color-accent); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), background var(--transition);
}

.fab svg { width: 24px; height: 24px; }
.fab:hover {
  background: var(--color-accent-hover);
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .process__steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .header__phone { display: none; }
  .burger { display: flex; }

  .about__grid,
  .order__grid,
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }

  .about__images { min-height: 320px; }
  .about__img--main { height: 280px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .services__grid,
  .portfolio__grid,
  .process__steps { grid-template-columns: 1fr; }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }

  .hero__stats { gap: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .cta__inner { flex-direction: column; text-align: center; }
  .cta__inner .btn { width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; }

  .lightbox { padding: 48px 16px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 28px; }
}

@media (max-width: 400px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}
