/* ===== Mонтажа на клими – One Page Styles ===== */
:root {
  --color-primary: #2CAAF3;
  --color-primary-dark: #1e8fd9;
  --color-header-bg: #1a7bb8;
  --color-accent: #7dd3ff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #f8f9fa;
  --color-white: #fff;
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(1200px, 100% - 2rem);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --header-height: 120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}
.logo:hover { color: var(--color-primary-dark); }

.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
}
.nav-list a:hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: block; }
  .nav.open .nav-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/bg-image.jpg') center/cover no-repeat;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 255, 236, 0.4);
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  text-align: center;
}

.section-intro,
.contact-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ----- Article ----- */
.article {
  background: var(--color-white);
}

.article-inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.article-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.article-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.article-body h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.article-body h3:first-of-type { margin-top: 0; }

.article-subsection {
  margin-bottom: 2rem;
}
.article-subsection:last-child {
  margin-bottom: 0;
}

.article-body p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.steps-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: none;
}
.steps-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  position: relative;
}
.steps-list li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}
.article-cta h3 { margin-top: 0; }
.article-cta p { margin-bottom: 0.5rem; }
.article-cta-links {
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

/* ----- Services ----- */
.services { background: var(--color-white); }

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  color: var(--color-primary);
}
.service-icon img,
.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ----- Why us ----- */
.why-us { background: var(--color-bg); }

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  margin: 0 auto;
}

.features-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
}
.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ----- Gallery ----- */
.gallery { background: var(--color-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img { transform: scale(1.05); }

/* ----- Lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ----- Contact ----- */
.contact { background: var(--color-white); }

.contact-block {
  text-align: center;
  font-size: 1.125rem;
}
.contact-block p { margin: 0.5rem 0; }
.contact-block a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-block a:hover { text-decoration: underline; }

/* ----- Footer ----- */
.site-footer {
  padding: 1.5rem 1rem;
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
