/* =========================================
   СТРОЙ БРИГАДА — style.css
   Breakpoints:
     xs  < 480px   (телефон портрет)
     sm  < 640px   (телефон альбом)
     md  < 900px   (планшет)
     lg  < 1100px  (небольшой экран)
     xl  ≥ 1200px  (десктоп)
   ========================================= */

/* ── RESET & VARIABLES ─────────────────── */
:root {
  --yellow:      #F5C518;
  --yellow-dark: #d4a800;
  --dark:        #1a1a1a;
  --dark2:       #222222;
  --gray:        #f5f5f5;
  --gray2:       #e0e0e0;
  --text:        #333333;
  --text-light:  #666666;
  --white:       #ffffff;
  --radius:      5px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.10);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --transition:  0.22s ease;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ── UTILITIES ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 24px; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-line {
  width: 50px;
  height: 3px;
  background: var(--yellow);
  margin: 0 auto 44px;
  border-radius: 2px;
}

/* ── BUTTONS ────────────────────────────── */
.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 14px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-yellow:hover  { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-yellow:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
  padding: 12px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-outline:hover  { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

/* ── HEADER ─────────────────────────────── */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-main {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-text-sub {
  font-size: 10px;
  color: #999;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop nav */
.main-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--yellow); background: rgba(245,197,24,0.08); }

/* Phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}

.ph-icon { color: var(--yellow); font-size: 18px; }

.header-phone a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  transition: color var(--transition);
}
.header-phone a:hover { color: var(--yellow); }

.ph-sub { font-size: 10px; color: #888; }

/* Burger button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 16px 24px 20px;
  border-top: 1px solid #2a2a2a;
  gap: 4px;
}

.mobile-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--yellow); }
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav.open { display: flex; }

/* Burger animation when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(105deg,
      rgba(10,10,10,0.88) 0%,
      rgba(10,10,10,0.55) 50%,
      rgba(10,10,10,0.15) 100%),
    url('resources/fon.png')
    center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 100px 80px;
  max-width: 740px;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.07;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

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

.hero-sub {
  color: #e0e0e0;
  font-size: 19px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── SERVICES ───────────────────────────── */
.services { background: var(--white); }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.service-card {
  flex: 1 1 160px;
  border: 1.5px solid var(--gray2);
  border-radius: 8px;
  padding: 28px 14px 22px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(245,197,24,0.18);
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: #fffbe6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.55;
}

/* ── PORTFOLIO ──────────────────────────── */
.portfolio { background: var(--gray); }

.gallery-wrapper { position: relative; }

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 calc(20% - 10px);
  min-width: 200px;
  height: 225px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.gallery-btn:hover  { background: var(--yellow); color: var(--dark); }
.gallery-btn.prev   { left: 0; }
.gallery-btn.next   { right: 0; }

.portfolio-cta {
  text-align: center;
  margin-top: 30px;
}

/* ── PRICE ──────────────────────────────── */
.price { background: var(--white); }

.price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
}

.price-category { flex: 1 1 300px; }

.price-category h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr { border-bottom: 1px solid #f0f0f0; }

.price-table td {
  padding: 7px 0;
  font-size: 13px;
  vertical-align: middle;
  color: #444;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  padding-left: 10px;
}

/* ── WHY ────────────────────────────────── */
.why { background: var(--gray); }

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.why-card {
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,197,24,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid var(--yellow);
}

.why-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.why-card p { font-size: 13px; color: var(--text-light); }

/* ── CONTACTS ───────────────────────────── */
.contacts { background: var(--dark2); color: var(--white); }
.contacts .section-title { color: var(--white); }

.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contacts-info {
  flex: 1 1 220px;
  min-width: 200px;
}

.contacts-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.contacts-info .sub {
  color: #aaa;
  font-size: 13.5px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ci-icon {
  width: 36px;
  height: 36px;
  background: rgba(245,197,24,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(245,197,24,0.3);
}

.contact-item a,
.contact-item span {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--yellow); }

.contacts-form-wrap { flex: 1 1 280px; }

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-form input,
.contacts-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  resize: none;
  width: 100%;
}

.contacts-form input::placeholder,
.contacts-form textarea::placeholder { color: #777; }

.contacts-form input:focus,
.contacts-form textarea:focus { border-color: var(--yellow); }

.contacts-form textarea { min-height: 100px; }

.contacts-form .btn-yellow { width: 100%; justify-content: center; }

.contacts-map-wrap { flex: 1 1 260px; }

.contacts-map {
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
  background: #333;
  border: 1px solid #444;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--dark);
  text-align: center;
  padding: 22px 20px;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #2a2a2a;
}

/* ── SCROLL-TO-TOP ──────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: background var(--transition), transform var(--transition), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}
.scroll-top.visible          { opacity: 1; pointer-events: auto; }
.scroll-top:hover            { background: var(--yellow-dark); transform: scale(1.1); }

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* ── LG: ≤ 1100px ───────────────────────── */
@media (max-width: 1100px) {
  .service-card { flex: 1 1 calc(33.3% - 18px); }
}

/* ── MD: ≤ 900px ────────────────────────── */
@media (max-width: 900px) {
  /* Hide desktop nav, show burger */
  .main-nav    { display: none; }
  .burger      { display: flex; }

  .header-phone .ph-sub { display: none; }

  .hero-inner { padding: 60px 32px; }

  /* Services: 3 cols */
  .service-card { flex: 1 1 calc(33.3% - 18px); }

  /* Gallery items wider */
  .gallery-item { flex: 0 0 calc(33.3% - 9px); min-width: 220px; }

  /* Price: 2 cols */
  .price-category { flex: 1 1 calc(50% - 24px); }

  /* Why: 3 cols (max-width reset) */
  .why-card { max-width: none; }

  /* Contacts: stack vertically */
  .contacts-grid { flex-direction: column; }
  .contacts-map  { height: 220px; }
}

/* ── SM: ≤ 640px ────────────────────────── */
@media (max-width: 640px) {
  section { padding: 52px 16px; }

  .hero { min-height: 420px; }
  .hero-inner { padding: 48px 20px; max-width: 100%; }
  .hero-btns  { flex-direction: column; gap: 10px; }
  .hero-btns .btn-yellow,
  .hero-btns .btn-outline { width: 100%; justify-content: center; }

  /* Services: 2 cols */
  .service-card { flex: 1 1 calc(50% - 9px); }

  /* Gallery: wider items, touch scroll */
  .gallery-item { flex: 0 0 260px; }

  /* Price: 1 col */
  .price-category { flex: 1 1 100%; }

  /* Why: 2 cols */
  .why-card { flex: 1 1 calc(50% - 14px); max-width: none; }

  /* Contacts map shorter */
  .contacts-map { height: 200px; }

  .scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 17px; }
}

/* ── XS: ≤ 400px ────────────────────────── */
@media (max-width: 400px) {
  .header-inner { padding: 0 12px; }

  /* Services: 1 col */
  .service-card { flex: 1 1 100%; }

  /* Why: 1 col */
  .why-card { flex: 1 1 100%; max-width: 100%; }
}
