/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', Arial, sans-serif; color: #1a1a1a; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --brand: #EC6608;
  --brand-hover: #d55a07;
  --dark: #323232;
  --dark2: #222;
  --white: #ffffff;
  --gray: #9b9b9b;
  --light-bg: #f5f5f5;
  --container: 1280px;
  --radius: 8px;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }
.section-dark { background: var(--dark); color: var(--white); }
.section-light { background: var(--light-bg); color: var(--dark); }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 48px; }
@media (max-width: 768px) { .section-title { font-size: 1.8rem; margin-bottom: 32px; } }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--white);
  padding: 16px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 16px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-1px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 500; font-size: 0.9rem;
  transition: gap 0.2s;
}
.btn-text:hover { gap: 10px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(30,30,30,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

/* Основной ряд шапки */
.header-inner {
  display: flex;
  align-items: center;
  height: 102px;
  padding: 0;
  position: relative;
}

/* Утилиты показа/скрытия */
.hide-mobile { display: flex; }
.show-mobile { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; }
}

/* === ДЕСКТОП DECO (в потоке flex) === */
.header-deco {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-deco img { display: block; }
/* Скрываем крупные deco на планшете/мобиле */
@media (max-width: 1280px) {
  .header-deco { display: none; }
}

/* === МОБИЛЬНЫЕ DECO-ПИКИ (absolute, по краям) === */
.header-deco-peek {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.header-deco-peek-left  { left: 0; }
.header-deco-peek-right { right: 0; }
.header-deco-peek img { display: block; height: 46px; width: auto; }

/* === ЛОГО + УСЛУГИ === */
.header-left {
  display: flex; align-items: center; gap: 24px;
  padding-left: 24px;
  flex: 1;
  z-index: 1;
}
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }

.services-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.services-btn:hover { background: var(--brand-hover); }
.menu-icon { font-size: 1.1rem; }

/* === ДЕСКТОП ПРАВАЯ ЧАСТЬ === */
.header-right {
  display: flex; align-items: center; gap: 40px;
  padding-right: 24px;
  z-index: 1;
}
.header-info { display: flex; gap: 40px; }
.info-block { display: flex; flex-direction: column; gap: 3px; }
.info-label  { font-size: 0.72rem; color: #C6C6C6; }
.info-value  { font-size: 0.82rem; color: var(--white); white-space: nowrap; }
.header-phone {
  font-size: 1.1rem; font-weight: 600; color: var(--white);
  white-space: nowrap;
}
.header-phone:hover { color: var(--brand); }

/* === МОБИЛЬНЫЙ ТЕЛЕФОН === */
.header-phone-mobile {
  font-size: 0.9rem; font-weight: 600; color: var(--white);
  white-space: nowrap; z-index: 1;
  margin-left: auto;
}
.header-phone-mobile:hover { color: var(--brand); }

/* === БУРГЕР === */
.burger-btn {
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; padding: 8px 12px; color: var(--white);
  z-index: 1;
}

/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(30,30,30,0.97);
  padding: 12px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem; color: var(--white);
}
.mobile-nav a:last-child { border-bottom: none; }

/* === МОБИЛЬНЫЙ АДАПТИВ ШАПКИ === */
@media (max-width: 768px) {
  .header-inner {
    height: 62px;
    padding: 0;
    overflow: hidden;    /* обрезаем peek-deco за краями */
  }
  .header-left {
    padding-left: 28px;  /* отступ от peek-deco (13px) */
    flex: 1;
    gap: 12px;
  }
  .logo img { height: 36px; }
}

/* Планшет: убираем адрес, оставляем телефон */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-inner { height: 80px; }
  .header-info { display: none; }
  .header-right { padding-right: 16px; gap: 16px; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,20,20,0.88) 45%, rgba(20,20,20,0.5));
}
.hero-content {
  position: relative; z-index: 1;
  padding-top: 80px; padding-bottom: 80px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500; line-height: 1.12;
  color: var(--white); margin-bottom: 48px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
}

/* ===== PORTFOLIO ===== */
.portfolio { padding: 80px 0; overflow: hidden; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 { font-size: 2.2rem; font-weight: 700; }
.arrows { display: flex; gap: 12px; }
.arrow-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.arrow-btn:hover { background: var(--brand); border-color: var(--brand); }

.portfolio-slider { overflow: hidden; }
.portfolio-track {
  display: flex; gap: 24px;
  transition: transform 0.4s ease;
}
.portfolio-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: rgba(255,255,255,0.05);
  border-radius: 12px; overflow: hidden;
}
.portfolio-placeholder {
  height: 240px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 1rem;
}
.portfolio-card img { width: 100%; height: 240px; object-fit: cover; }
.portfolio-card-body { padding: 20px; }
.portfolio-card-body p { color: var(--white); margin-bottom: 12px; }

@media (max-width: 1024px) {
  .portfolio-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .portfolio-card { flex: 0 0 100%; }
  .section-header h2 { font-size: 1.6rem; }
}

/* ===== SERVICES ===== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}

.services { padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.service-card {
  background: var(--white); border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative; transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.14); }

.service-num {
  position: absolute; top: 16px; left: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; z-index: 1;
}

/* Анимация изображения в карточке услуги */
.service-img {
  width: 100%; height: 200px; object-fit: cover;
  opacity: 0;
  transform: translateX(-48px);
  will-change: opacity, transform;
}
.service-card.is-visible .service-img {
  animation: slideInLeft 0.55s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

.service-placeholder { height: 200px; background: #e8e8e8; }
.service-info { padding: 20px; }
.service-price { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.service-name { font-size: 1rem; color: var(--gray); margin-top: 4px; }
.promo-badge {
  display: inline-block; margin-top: 8px;
  background: var(--brand); color: var(--white);
  padding: 3px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
}
.services-cta { text-align: center; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== WHY ===== */
.why { padding: 80px 0; }
.socials-block {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 60px; margin-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.socials-block p { font-size: 1.1rem; line-height: 1.6; }
.socials-buttons { display: flex; gap: 16px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 0.95rem; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.why-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.why-text h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; }
.why-text p { color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; }
.why-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.advantages-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.advantage-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px;
}
.advantage-icon { margin-bottom: 16px; display: flex; align-items: center; } .advantage-icon img { display: block; }
.advantage-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 8px; }
.advantage-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

@media (max-width: 1024px) {
  .why-block { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .socials-block { flex-direction: column; align-items: flex-start; }
  .socials-buttons { flex-direction: column; }
}

/* ===== CONTACTS ===== */
.contacts { padding: 80px 0; }
.contacts-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
  align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1rem;
}
.contact-item svg { flex-shrink: 0; margin-top: 2px; }
.contact-item a:hover { color: var(--brand); }
.contacts-map { border-radius: 12px; overflow: hidden; }

@media (max-width: 768px) {
  .contacts-layout { grid-template-columns: 1fr; }
}

/* ===== CONTACT FORM ===== */
.contact-form-section { padding: 80px 0; }
.form-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.form-text h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.form-text p { color: rgba(255,255,255,0.7); line-height: 1.7; }
.form-box { background: rgba(255,255,255,0.06); border-radius: 16px; padding: 40px; }
.form-field { margin-bottom: 16px; }
.form-field input {
  width: 100%; padding: 16px 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); color: var(--white);
  font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus { outline: none; border-color: var(--brand); }
.form-success {
  background: rgba(76, 175, 80, 0.2); border: 1px solid rgba(76,175,80,0.4);
  color: #a5d6a7; padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-box { padding: 24px; }
}

/* ===== FOOTER ===== */
.site-footer { background: var(--dark2); color: var(--white); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 44px; }
.logo-name { font-size: 1.1rem; font-weight: 700; }
.logo-sub { font-size: 0.8rem; color: var(--gray); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--gray); transition: color 0.2s; }
.footer-socials a:hover { color: var(--white); }

.footer-nav h4, .footer-contacts h4 {
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
}
.footer-nav ul, .footer-contacts ul {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.footer-nav a, .footer-contacts li { font-size: 0.9rem; color: var(--gray); }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--white); }

.btn-contact-footer {
  display: inline-flex; align-items: center;
  background: var(--brand); color: var(--white) !important;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; margin-top: 4px;
  transition: background 0.2s;
}
.btn-contact-footer:hover { background: var(--brand-hover); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: var(--gray);
}
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

