/* ===== Variables ===== */
:root {
  --color-accent: #3EA82E;
  --color-accent-hover: #2E8B22;
  --color-dark: #1A1A1A;
  --color-dark-2: #222222;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #E0E0E0;
  --color-white: #FFFFFF;
  --color-light: #F5F5F5;
  --header-height: 80px;
  --container: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: 0.5px; }
h3 { font-weight: 400; }

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

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.1s ease, color 0.3s ease, border-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}
.header-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}
.header-phone:hover { color: var(--color-accent); }
.header-phone svg { width: 20px; height: 20px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image:
    linear-gradient(to right, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.4) 60%, rgba(26,26,26,0.1) 100%),
    url('../img/01-hero.webp');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding-top: var(--header-height);
}
.hero-content {
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  background: rgba(62, 168, 46, 0.1);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--color-accent); }
.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  margin-bottom: 36px;
  opacity: 0.9;
  max-width: 540px;
}
.hero-cta {
  margin-bottom: 56px;
}
.hero-features {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}
.hero-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(62, 168, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.hero-feature-icon svg { width: 22px; height: 22px; }

/* ===== Section base ===== */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
}
.section-header p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto;
}
.section-dark .section-header h2 { color: var(--color-white); }
.section-dark .section-header p { color: rgba(255, 255, 255, 0.7); }

/* ===== Block 2 — Components ===== */
.components-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.component-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.component-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.component-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}
.component-card:hover::before { transform: scaleX(1); }
.component-card:hover .component-icon { color: var(--color-accent); }
.component-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.component-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.component-card h3 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.component-card p {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Block 3 — Additional services ===== */
.section-dark {
  background: var(--color-dark);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--color-dark-2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(62, 168, 46, 0.3);
}
.service-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(34, 34, 34, 0.6));
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-image img { transform: scale(1.05); }
.service-content {
  padding: 32px 28px;
}
.service-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}
.service-content .btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
}

/* ===== Block 4 — Breakdowns ===== */
.section-light {
  background: var(--color-light);
}
.breakdowns-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.breakdowns-image {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.breakdowns-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.breakdowns-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(62, 168, 46, 0.2));
}
.breakdowns-list { display: flex; flex-direction: column; }
.breakdown-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
  border-radius: 6px;
}
.breakdown-row:hover {
  background: rgba(62, 168, 46, 0.05);
}
.breakdown-row:last-of-type { border-bottom: none; }
.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle.problem { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.icon-circle.solution { background: rgba(62, 168, 46, 0.15); color: var(--color-accent); }
.breakdown-row .text { font-size: 15px; }
.breakdown-row .problem-text { font-weight: 700; color: var(--color-dark); }
.breakdown-row .solution-text { color: var(--color-text-muted); }
.breakdown-row .arrow {
  color: var(--color-text-muted);
  font-size: 18px;
}
.breakdowns-banner {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(62, 168, 46, 0.3);
}
.breakdowns-banner svg { width: 28px; height: 28px; flex-shrink: 0; }

/* ===== Block 5 — Why us ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.why-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.why-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.why-list { display: flex; flex-direction: column; }
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.why-item:last-of-type { border-bottom: none; }
.why-num {
  font-family: 'Oswald', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}
.why-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
}
.why-location {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.why-location svg { width: 18px; height: 18px; color: var(--color-accent); }

/* ===== Block 6 — Contract CTA ===== */
.contract {
  background-image: linear-gradient(rgba(26, 26, 26, 0.82), rgba(26, 26, 26, 0.82)), url('../img/07-contract.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  position: relative;
}
.contract-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.contract h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.contract h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 20px;
}
.contract-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contract-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
}
.contract-features svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contract-form {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contract-form h3 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--color-white);
}
.form-field { margin-bottom: 16px; }
.form-field input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.3s ease;
}
.form-field input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contract-form .btn { width: 100%; margin-top: 8px; }
.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.form-success {
  display: none;
  padding: 20px;
  background: rgba(62, 168, 46, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
}
.form-success.active { display: block; }

/* ===== Block 7 — Contacts ===== */
.contacts {
  background: var(--color-dark);
  color: var(--color-white);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: stretch;
}
.contacts-info h2 {
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  margin-bottom: 32px;
  color: var(--color-white);
}
.contacts-info h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 20px;
}
.contact-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.contact-value {
  font-size: 18px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}
.contact-phone:hover { color: var(--color-accent-hover); }
.contact-link { transition: color 0.3s ease; }
.contact-link:hover { color: var(--color-accent); }

.accordion {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.accordion-trigger {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.accordion-trigger:hover { color: var(--color-accent); }
.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion.open .accordion-content { max-height: 600px; }
.accordion-inner {
  padding: 8px 0 24px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.accordion-inner div { padding: 4px 0; }
.accordion-inner strong { color: var(--color-white); font-weight: 700; }

.contacts-map {
  border-radius: 8px;
  overflow: hidden;
  min-height: 500px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: #111111;
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer-logo img {
  height: 44px;
  display: block;
}
.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-center a { transition: color 0.3s ease; }
.footer-center a:hover { color: var(--color-accent); }
.footer-right {
  text-align: right;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .components-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .breakdowns-grid, .why-grid, .contract-grid, .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contract { background-attachment: scroll; }
  .breakdowns-image img { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo, .footer-right { text-align: center; }
  .footer-logo img { margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .section { padding: 60px 0; }
  .header-phone span { display: none; }
  .header-phone { padding: 10px; background: var(--color-accent); border-radius: 50%; }
  .header-phone svg { width: 22px; height: 22px; }
  .header-phone:hover { color: var(--color-white); background: var(--color-accent-hover); }
  .logo img { height: 40px; }
  .hero { min-height: 100vh; background-position: 70% center; }
  .hero-features { gap: 20px; }
  .hero-feature { font-size: 13px; }
  .components-grid { grid-template-columns: 1fr; gap: 16px; }
  .breakdown-row {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 12px;
  }
  .breakdown-row .arrow { display: none; }
  .breakdown-row > .icon-circle.solution {
    grid-column: 1;
    margin-top: 4px;
  }
  .breakdown-row > .solution-text {
    grid-column: 2;
    padding-top: 4px;
  }
  .why-num { font-size: 42px; }
  .why-item { gap: 16px; padding: 20px 0; }
  .contract-form { padding: 28px 24px; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero { padding-top: var(--header-height); }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-features { flex-direction: column; gap: 14px; }
  .btn { padding: 14px 24px; font-size: 14px; }
  .section-header h2, .contract h2, .contacts-info h2 { font-size: 26px; }
  .contact-phone { font-size: 22px; }
  .contract-form { padding: 24px 20px; }
}

/* ===== Decorative overlay ===== */
.hero::before, .contract::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(62, 168, 46, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(62, 168, 46, 0.05), transparent 40%);
}
.hero > .container { position: relative; z-index: 1; width: 100%; }
.contract > .container { position: relative; z-index: 1; }
