/* ==========================================================================
   main.css — ШтукатурПро Landing Page
   Author: MaizDev | v1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT FACE — Golos Text (variable, wght 400–900)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/GolosText-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --navy:         #1B2B4B;
  --navy-dark:    #141F38;
  --navy-mid:     #1E3260;
  --orange:       #F47920;
  --orange-hover: #D96A18;
  --white:        #FFFFFF;
  --gray-bg:      #F5F7FA;
  --gray-border:  #E5E7EB;
  --gray-text:    #6B7280;
  --font:         'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r:            12px;
  --r-sm:         8px;
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --t:            0.2s ease;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); }

/* Smooth scroll offset for fixed header */
section[id], footer[id] { scroll-margin-top: 80px; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.65;
  max-width: 580px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-inline: auto; }

/* Section header wrapper — controls spacing below heading block */
.sec-head { margin-bottom: 48px; }
.sec-head .section-desc { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,121,32,0.35);
}
.btn-orange:active { transform: translateY(0); box-shadow: none; }
.btn-sm  { padding: 9px 18px; font-size: 13px; }
.btn-lg  { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; white-space: normal; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 28px;
}

/* — Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--orange);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  margin-top: 2px;
}

/* — Navigation */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* — Header contacts */
.header-contacts { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-worktime { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.4; }
.header-phone { font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; }
.header-phone:hover { color: var(--orange); }

/* — Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: 140px 0 88px;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}
/* Subtle warm glow top-right */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(244,121,32,0.07) 0%, transparent 65%);
  pointer-events: none;
}
/* Hero background photo */
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.85) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 25%, rgba(0,0,0,0.85) 100%);
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-img { display: none; }
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,121,32,0.12);
  border: 1px solid rgba(244,121,32,0.25);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.07;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.hero-visit svg { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,0.45); }

/* Stats */
.hero-stats {
  display: flex;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -1px;
}
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,0.45); }

/* --------------------------------------------------------------------------
   8. PRICES
   -------------------------------------------------------------------------- */
.prices { background: var(--gray-bg); padding: 88px 0; }

.prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.prices-left { display: flex; flex-direction: column; gap: 12px; }

/* Price card */
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--t), transform var(--t);
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.price-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--orange);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-icon svg { width: 24px; height: 24px; }

.price-info { flex: 1; min-width: 0; }
.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 3px;
}
.price-note { font-size: 12px; color: var(--gray-text); }
.price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
  text-align: right;
  flex-shrink: 0;
}
.price-value sup { font-size: 11px; font-weight: 600; vertical-align: super; }

/* Included card */
.included-card {
  background: var(--navy);
  border-radius: var(--r);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.included-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.included-header svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--orange); }

.included-list { margin-bottom: 28px; flex: 1; }
.included-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}
.included-list li:last-child { border-bottom: none; }

.inc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  flex: 1;
  min-width: 0;
}
.inc-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%23F47920'/%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.inc-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. ADVANTAGES
   -------------------------------------------------------------------------- */
.advantages { background: var(--white); padding: 88px 0; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.adv-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.adv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.adv-icon {
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.adv-card p { font-size: 13px; color: var(--gray-text); line-height: 1.65; }

/* --------------------------------------------------------------------------
   10. FOR WHOM
   -------------------------------------------------------------------------- */
.for-whom { background: var(--gray-bg); padding: 88px 0; }

.fw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fw-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--r);
  padding: 36px 32px;
}
.fw-card.dark { background: var(--navy); border-color: var(--navy); }

.fw-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.fw-icon.icon-navy  { background: var(--navy-mid); }
.fw-icon.icon-orange { background: var(--orange); }
.fw-icon svg { width: 26px; height: 26px; }

.fw-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.fw-card.dark .fw-title { color: var(--white); }
.fw-desc { font-size: 14px; color: var(--gray-text); line-height: 1.65; margin-bottom: 20px; }
.fw-card.dark .fw-desc { color: rgba(255,255,255,0.6); }

.fw-list { display: flex; flex-direction: column; gap: 10px; }
.fw-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
}
.fw-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%23F47920'/%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  margin-top: 1px;
}
.fw-card.dark .fw-list li { color: rgba(255,255,255,0.7); }
.fw-card.dark .fw-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' rx='4' fill='%23F47920'/%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   11. CTA
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  padding: 40px 0 24px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo-block .logo-sub { color: rgba(255,255,255,0.35); }
.footer-phone-link {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-top: 8px;
}
.footer-phone-link:hover { color: var(--orange); }
.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  text-align: right;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); text-align: center; }

/* --------------------------------------------------------------------------
   13. RESPONSIVE — TABLET ≤ 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-worktime { display: none; }
  .header-phone    { display: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE — MOBILE ≤ 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 12px 24px 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 199;
    margin-left: 0;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav ul  { flex-direction: column; gap: 2px; }
  .main-nav a   { display: block; padding: 13px 16px; font-size: 15px; }
  .header-contacts { display: none; }
  .burger { display: flex; }

  /* Hero */
  .hero { padding: 104px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
  .btn-lg { padding: 14px 24px; width: 100%; }

  /* Sections — reduce vertical padding on mobile */
  .prices, .advantages, .for-whom, .cta-section { padding: 60px 0; }
  .sec-head { margin-bottom: 36px; }

  /* Grids */
  .prices-grid { grid-template-columns: 1fr; }
  .fw-grid      { grid-template-columns: 1fr; }

  /* Footer */
  .footer-row   { flex-direction: column; gap: 20px; }
  .footer-meta  { text-align: center; }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE — SMALL ≤ 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .adv-grid { grid-template-columns: 1fr; }
  .stat-item { padding-right: 20px; margin-right: 20px; }
  .fw-card { padding: 28px 20px; }
  .included-card { padding: 24px 16px; }
  /* Price card — wrap layout: price goes to second line on small screens */
  .price-card { padding: 14px 16px; gap: 8px 12px; flex-wrap: wrap; align-items: flex-start; }
  .price-icon { width: 42px; height: 42px; min-width: 42px; align-self: center; }
  .price-icon svg { width: 20px; height: 20px; }
  .price-info { flex: 1; }
  .price-value { flex-basis: 100%; font-size: 20px; text-align: right; padding-left: 54px; margin-top: -2px; }
  .hero-stats {
    flex-direction: column;
    gap: 0;
    border-top: none;
    padding-top: 0;
  }
  .stat-item {
    padding: 16px 0;
    margin: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:last-child { border-bottom: none; }
}
