/* ===========================
   CSS Variables — Design System
   =========================== */
:root {
  --graphite:   #191E27;
  --deep-blue:  #3E5B7B;
  --text-para:  #526073;
  --soft-blue:  #E7EDF5;
  --cloud:      #F4F2F0;
  --white:      #FFFFFF;

  --font-heading: 'Unbounded', sans-serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   Base
   =========================== */
html {
  scroll-padding-top: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--graphite);
}

h1 { font-size: 64px; }
h2 { font-size: 36px; }
h3 { font-size: 20px; }

p {
  font-family: var(--font-body);
  color: var(--text-para);
  font-size: 20px;
}

a {
  color: var(--deep-blue);
  text-decoration: none;
}
a:hover {
  color: var(--deep-blue);
  opacity: 0.8;
}

/* ===========================
   Buttons
   =========================== */
.btn-dark-custom {
  background-color: var(--graphite);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.btn-dark-custom:hover {
  background-color: var(--graphite);
  color: var(--white);
  opacity: 0.85;
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--graphite);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: 2px solid var(--graphite);
  padding: 12px 28px;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-outline-custom:hover {
  background-color: var(--graphite);
  color: var(--white);
}

/* ===========================
   Sections utility
   =========================== */
.section-cloud { background-color: var(--cloud); }
.section-soft-blue { background-color: var(--soft-blue); }
.section-dark { background-color: var(--graphite); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ===========================
   Responsive typography
   =========================== */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  body, p { font-size: 16px; }
}

@media (max-width: 991px) {
  section[id] {
    scroll-margin-top: 16px;
  }
}

/* ===========================
   BLOCK 1: HEADER
   =========================== */
#main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.header-sticky {
  position: fixed;
  background-color: var(--white);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Logo (light variant on hero, dark variant on sticky white header) */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo__img {
  display: block;
  height: 45px;
  width: auto;
}



/* show white logo by default, dark logo when header is sticky */
.header-logo__img--dark { display: none; }
#main-header.header-sticky .header-logo__img--light { display: none; }
#main-header.header-sticky .header-logo__img--dark { display: block; }

/* Nav */
.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s, opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.7;
}

#main-header.header-sticky .header-nav a {
  color: var(--graphite);
}



/* Phone */
.header-phone {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s, opacity 0.2s;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--white);
  opacity: 0.8;
}

.header-phone__icon {
  display: block;
  flex-shrink: 0;
}

#main-header.header-sticky .header-phone {
  color: var(--deep-blue);
}

#main-header.header-sticky .header-phone:hover {
  color: var(--graphite);
}

#main-header.header-sticky .header-phone__icon {
  filter: brightness(0) saturate(100%) invert(35%) sepia(18%) saturate(957%) hue-rotate(171deg) brightness(92%) contrast(88%);
}

#main-header.header-sticky .header-phone:hover .header-phone__icon {
  filter: brightness(0) saturate(100%) invert(9%) sepia(12%) saturate(1215%) hue-rotate(181deg) brightness(94%) contrast(91%);
}

@media (max-width: 1200px) {
.header-logo__img {
  height: 28px;
}
.header-nav {
  display: flex;
  gap: 20px;
}
.header-phone {
  font-size: 14px;
  gap: 3px;
}
}

@media (max-width: 992px) {
.header-logo__img {
  height: 40px;
}
}

/* CTA Button (deep-blue, like in mockup) */
.btn-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  background-color: var(--deep-blue);
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  color: var(--white);
  background-color: var(--graphite);
}

.btn-cta:focus-visible {
  outline: 3px solid rgba(62, 91, 123, 0.35);
  outline-offset: 3px;
}

.mobile-header-actions {
  align-items: center;
  gap: 10px;
}

.mobile-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 500px;
  background-color: var(--deep-blue);
  border: 0;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-icon-btn:hover {
  color: var(--white);
  background-color: var(--graphite);
}

/* Burger button */
.burger-btn {
  font-size: 24px;
}

#main-header.header-sticky .burger-btn {
  color: var(--white);
}

/* Mobile Offcanvas Menu */
.mobile-menu {
  background-color: var(--graphite);
  width: 280px !important;
}

.mobile-menu .offcanvas-header {
  padding: 20px 24px;
  justify-content: flex-end;
  border-bottom: 0;
}

.mobile-menu .header-logo__text {
  color: var(--white);
}

.mobile-menu .offcanvas-body {
  padding: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  transition: opacity 0.2s;
}

.mobile-nav a:hover {
  opacity: 0.7;
}

.mobile-menu__cta {
  margin-top: 33px;
}

@media (max-width: 991px) {
  .header-inner {
    padding: 10px 20px;
    height: 68px;
  }

  /* Mockup: thin separator line under header */
  #main-header:not(.header-sticky) .header-inner {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* ===========================
   BLOCK 2: HERO
   =========================== */
.hero-section {
  position: relative;
  margin-top: 0;
  min-height: 900px;
  height: 100vh;
  max-height: 1000px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding: 88px 60px 0;
}

.hero-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 32px;
  color: var(--white);
  margin-top: 40px;
  margin-bottom: 0;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 100px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-badge__icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: block;
}

.hero-badge__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  line-height: 1.4;
  text-align: left;
}

.btn-hero-cta {
  display: inline-block;
  margin-top: 68px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 10px;
  padding: 22px 50px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-hero-cta:hover {
  background-color: var(--white);
  color: var(--graphite);
}

@media (max-width: 991px) {
  .hero-badges {
    gap: 30px;
    margin-top: 60px;
  }
}

/* Spacer only on mobile hero (Figma gap between text and CTA) */
.hero-spacer {
  display: none;
}

/* Mobile hero — Figma menu_mob_vew 375×812:
   68 header + 50 gap + 188 text + 378 gap + 68 btn + 60 bottom = 812 */
@media (max-width: 991px) {
  .hero-section {
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-section .container {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 118px 20px 60px;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
    flex: 0 0 auto;
  }

  .hero-title {
    max-width: 335px;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    margin-bottom: 0;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    max-width: 324px;
    font-size: 20px;
    line-height: 24px;
    margin-top: 0;
    text-align: center;
  }

  .hero-badges {
    display: none;
  }

  .hero-spacer {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }

  .btn-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 335px;
    height: 68px;
    box-sizing: border-box;
    font-size: 20px;
    line-height: 24px;
    padding: 0 50px;
    border: 2px solid var(--white);
    border-radius: 10px;
    margin-top: 0;
    align-self: center;
    flex: 0 0 68px;
  }
}

/* ===========================
   MODAL: Contact Form
   =========================== */
.contact-modal {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.contact-modal__header {
  background-color: var(--graphite);
  padding: 32px 36px 24px;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-modal__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  margin: 0;
}

.contact-modal__body {
  padding: 32px 36px;
  background-color: var(--white);
}

.contact-form__input {
  border: none;
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--graphite);
  background-color: var(--soft-blue);
  transition: box-shadow 0.2s;
}

.contact-form__input:focus {
  background-color: var(--soft-blue);
  box-shadow: 0 0 0 2px rgba(62, 91, 123, 0.18);
  outline: none;
}

.contact-form__input::placeholder {
  color: #8A97A8;
}

.contact-form__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-para);
  line-height: 1.4;
  cursor: pointer;
}

.contact-form__label span,
.contact-form__privacy-link {
  display: block;
}

.contact-form__privacy-link {
  color: var(--deep-blue);
}

.contact-form__privacy-link:hover {
  color: var(--deep-blue);
  opacity: 0.82;
}

.form-check-input:checked {
  background-color: var(--deep-blue);
  border-color: var(--deep-blue);
}

.contact-form__submit {
  border-radius: 6px;
  background-color: var(--deep-blue);
  color: var(--white);
}

/* BLOCK 3 */
.updates-section {
  background-color: var(--white);
  padding: 100px 0 108px;
}

.updates-section .container {
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

.updates-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.updates-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--graphite);
  margin: 0;
}

.updates-lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: var(--graphite);
}

.update-options-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1320px;
  margin: 64px auto 0;
}

.update-option {
  display: flex;
  flex-direction: column;
  background-color: var(--cloud);
  border-radius: 12px;
  padding: 20px 20px 24px;
  overflow: hidden;
}

.update-option__img {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 24px;
}

.update-option__img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.update-option__caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.update-option__number {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #3E5B7B;
  opacity: 50%;
}

.update-option__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: var(--graphite);
  margin: 0;
}

@media (max-width: 1200px) {
  .update-options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .updates-section {
    padding: 88px 0 96px;
  }

  .updates-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .updates-section {
    padding: 60px 0;
  }

  .updates-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .updates-title {
    font-size: 24px;
  }

  .updates-lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.2;
  }

  .update-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
  }

  .update-option {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
  }

  .update-option__img {
    flex: none;
    aspect-ratio: 1 / 1;
    min-height: auto;
    margin-bottom: 0;
    overflow: hidden;
  }

  .update-option__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .update-option__caption {
    height: 60px;
    padding: 0 20px 30px;
    align-items: center;
    gap: 4px;
  }

  .update-option__number {
    font-size: 12px;
    line-height: 15px;
    opacity: 0.4;
  }

  .update-option__title {
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (max-width: 375px) {
  .updates-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* BLOCK 4 */
.restoration-section {
  background-color: var(--cloud);
  padding: 100px 0 83px;
}

.restoration-section .container {
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

.restoration-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.restoration-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--graphite);
  margin: 0;
}

.restoration-lead {
  max-width: 680px;
  margin: 24px auto 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--graphite);
  text-align: center;
}

.restoration-content {
  --bs-gutter-x: 0;
  margin-top: 48px;
}

.restoration-copy {
  max-width: 520px;
}

.restoration-copy p {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-para);
}

.restoration-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 39px 0 0;
  padding: 0;
}

.restoration-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-para);
}

.restoration-list i {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  color: var(--deep-blue);
}

.restoration-image {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 992px) {
  .restoration-section {
    padding: 88px 0 96px;
  }

  .restoration-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .restoration-content {
    margin-top: 52px;
    row-gap: 44px;
  }

  .restoration-copy {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .restoration-section {
    padding: 72px 0 80px;
  }

  .restoration-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .restoration-title {
    font-size: 24px;
  }

  .restoration-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .restoration-content {
    margin-top: 44px;
  }
}

@media (max-width: 375px) {
  .restoration-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===========================
   CTA PHOTO + BLOCK 5: SERVICES
   =========================== */
.cta-photo-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 50px 150px 50px 64px;
  overflow: hidden;
  background-image: url('../images/cta-1-bg.jpg');
  background-size: cover;
  background-position: center;
}

.cta-photo-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 30, 39, 0.76) 0%, rgba(25, 30, 39, 0.56) 48%, rgba(25, 30, 39, 0.28) 100%);
  pointer-events: none;
}

.cta-photo-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.cta-photo-content {
  width: 562px;
  max-width: 100%;
}

.cta-photo-title {
  width: 517px;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--white);
}

.cta-photo-lead {
  width: 517px;
  max-width: 100%;
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
  color: var(--white);
}

.cta-photo-button {
  width: 228px;
  height: 68px;
  margin-top: 50px;
  padding: 22px 50px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 24px;
}

.cta-photo-note {
  width: 562px;
  max-width: 100%;
  margin: 50px 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: var(--white);
  opacity: 0.5;
}

/* CTA: Наш подход — Frame 91 (desktop) / Frame 57 (mobile) */
.cta-approach-section {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-height: 500px;
  height: 500px;
  padding: 50px 150px 50px 64px;
  gap: 227px;
  overflow: hidden;
  background-image: url('../images/cta-2-bg.jpg');
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.cta-approach-section__bg {
  display: none;
}

.cta-approach-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(25, 30, 39, 0.72) 0%, rgba(25, 30, 39, 0.45) 42%, rgba(25, 30, 39, 0.12) 68%, transparent 100%);
  pointer-events: none;
}

.cta-approach-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: none;
  max-width: 800px;
}

.cta-approach-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  width: 800px;
  max-width: 100%;
}

.cta-approach-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.cta-approach-title {
  margin: 0;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--white);
}

.cta-approach-lead {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
  color: var(--white);
}

.cta-approach-signature {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--white);
  opacity: 0.5;
}

.services-section {
  background-color: #F4F2F0;
  padding: 100px 0 120px;
  scroll-margin-top: 0;
}

.services-section .container {
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

.services-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.services-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--graphite);
}

.services-lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: var(--graphite);
}

.services-grid {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 40px;
  margin-top: 50px;
}

.service-card {
  height: 100%;
  overflow: hidden;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(25, 30, 39, 0.12);
}

.service-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body {
  padding: 52px 58px 58px;
}

.service-card__title {
  margin: 0 0 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--graphite);
}

.service-card__body p {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-para);
}

.service-card__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .cta-photo-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .services-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .services-section {
    padding: 88px 0 104px;
  }

  .services-grid {
    --bs-gutter-y: 44px;
  }
}

@media (max-width: 991px) {
  .cta-approach-section {
    align-items: flex-start;
    min-height: 328px;
    height: 328px;
    padding: 30px 20px;
    gap: 227px;
    background-image: none;
  }

  .cta-approach-section__bg {
    display: block;
    position: absolute;
    width: 582px;
    height: 328px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 0;
    background-image: url('../images/cta-2-bg.jpg');
    background-size: cover;
    background-position: center;
    pointer-events: none;
  }

  .cta-approach-section__overlay {
    background: linear-gradient(
      90deg,
      rgba(25, 30, 39, 0.78) 0%,
      rgba(25, 30, 39, 0.5) 38%,
      rgba(25, 30, 39, 0.2) 62%,
      transparent 85%
    );
  }

  .cta-approach-section__inner {
    flex: 1 1 auto;
    align-items: flex-start;
    max-width: none;
    width: 335px;
  }

  .cta-approach-content {
    flex: 1 1 auto;
    width: 335px;
    max-width: 100%;
    gap: 50px;
  }

  .cta-approach-text {
    gap: 20px;
  }

  .cta-approach-title {
    font-size: 24px;
    line-height: 30px;
  }

  .cta-approach-lead {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .cta-photo-section {
    min-height: 600px;
    align-items: stretch;
    padding: 48px 20px;
  }

  .cta-photo-section__overlay {
    background: none;
  }

  .cta-photo-section {
    background-position: unset;
  }

  .cta-photo-section .container,
  .cta-photo-content {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .cta-photo-content {
    flex: 1;
  }

  .services-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-photo-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .cta-photo-lead {
    max-width: 335px;
    font-size: 20px;
    line-height: 1.5;
  }

  .cta-photo-button {
    width: 100%;
    margin-top: auto;
    height: 64px;
    padding: 0 24px;
  }

  .cta-photo-note {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 335px;
  }

  .services-section {
    padding: 72px 0 88px;
  }

  .services-title {
    font-size: 24px;
  }

  .services-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .services-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 20px;
    margin-top: 0px;
  }

  .service-card {
    border-radius: 20px;
    box-shadow: 0px 16px 32px -4px rgba(12, 12, 13, 0.1), 0px 4px 4px -4px rgba(12, 12, 13, 0.05);
  }

  .service-card__image {
    height: 209px;
    aspect-ratio: unset;
    width: 100%;
  }

  .service-card__body {
    padding: 20px;
  }

  .service-card__title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .service-card__body p {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (max-width: 375px) {
  .cta-photo-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===========================
   BLOCK 6 — gallery
   =========================== */
.gallery-section {
  --gallery-section-space: 100px;
  background-color: var(--white);
  padding: var(--gallery-section-space) 0;
  scroll-margin-top: 0;
}

.gallery-section .container {
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

.gallery-heading {
  max-width: 760px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--graphite);
}

.gallery-lead {
  max-width: 720px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: var(--graphite);
}

.gallery-grid {
  margin-top: 64px;
}

.ba-card {
  --ba-position: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background-color: var(--cloud);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.ba-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-card__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba-position)) 0 0);
}

.ba-card__clip .ba-card__img--before {
  width: 100%;
  max-width: 100%;
}

.ba-card__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-position);
  width: 2px;
  background-color: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-card__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--deep-blue);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  outline: none;
}

.ba-card__handle:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

.ba-card__arrow {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.ba-card__arrow--left {
  border-right: 8px solid var(--deep-blue);
}

.ba-card__arrow--right {
  border-left: 8px solid var(--deep-blue);
}

.ba-card__label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: rgba(25, 30, 39, 0.85);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.ba-card__label--before {
  left: 16px;
}

.ba-card__label--after {
  right: 16px;
}

.gallery-indicators {
  gap: 12px;
  margin-top: 32px;
}

.gallery-indicators__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(62, 91, 123, 0.35);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.gallery-indicators__arrow:hover {
  color: var(--deep-blue);
}

.gallery-indicators__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-indicators__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-indicators__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: #E8EEF5;
  cursor: pointer;
  transition: background-color 0.2s ease, height 0.2s ease, width 0.2s ease;
}

.gallery-indicators__dot--active {
  width: 11px;
  height: 11px;
  background-color: var(--deep-blue);
}

@media (max-width: 992px) {
  .gallery-section {
    --gallery-section-space: 88px;
  }

  .gallery-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    --gallery-section-space: 72px;
  }

  .gallery-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-title {
    font-size: 24px;
  }

  .gallery-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .gallery-grid {
    margin-top: 0px;
  }

  .ba-card {
    border-radius: 12px;
  }

  .ba-card__label {
    bottom: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .ba-card__label--before {
    left: 12px;
  }

  .ba-card__label--after {
    right: 12px;
  }
}

@media (max-width: 375px) {
  .gallery-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===========================
   BLOCK 7 — advantages
   =========================== */
.advantages-section {
  position: relative;
  overflow: hidden;
  background-image: url('../images/advantages-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 88px 0;
  scroll-margin-top: 0;
  box-shadow: none;
}

.advantages-section__stripes {
  display: none;
}

.advantages-section__overlay {
  display: none;
}

.advantages-section .container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding-left: 60px;
  padding-right: 60px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.advantages-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.advantage {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 120px;
}

.advantage__icon {
  display: block;
  flex: none;
  width: 120px;
  height: 120px;
}

.advantage__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.advantage__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  color: var(--white);
}

.advantage__text {
  max-width: 320px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 992px) {
  .advantages-section .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Mobile — Figma Frame 83 (375×990) */
@media (max-width: 991px) {
  .advantages-section {
    padding: 60px 20px;
    background-image: url('../images/advantages-bg.jpg');
    background-size: cover;
    background-position: center;
  }

  .advantages-section .container {
    max-width: 100%;
    padding: 0;
  }

  .advantages-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    max-width: 335px;
    width: 100%;
    margin: 0 auto;
  }

  .advantages-column {
    gap: 30px;
    width: 100%;
  }

  .advantage {
    align-items: center;
    gap: 10px;
    min-height: 120px;
    width: 100%;
  }

  .advantage__icon {
    width: 120px;
    height: 120px;
    border-radius: 500px;
  }

  .advantage__body {
    flex: 1 1 auto;
    gap: 10px;
    max-width: 205px;
  }

  .advantage__title {
    font-size: 20px;
    line-height: 25px;
  }

  .advantage__text {
    max-width: 205px;
    font-size: 16px;
    line-height: 19px;
    color: rgba(255, 255, 255, 0.6);
  }
}

/* BLOCK 8 — fabrics */
.fabrics-section {
  background: var(--white);
  padding: 100px 0;
}

.fabrics-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--graphite);
  margin-bottom: 16px;
}

.fabrics-section__lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--graphite);
  max-width: 720px;
  margin-bottom: 48px;
}

.fabric-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow:
    0 16px 32px -4px rgba(12, 12, 13, 0.1),
    0 4px 4px -4px rgba(12, 12, 13, 0.05);
}

.fabric-card__photo {
  height: 300px;
  overflow: hidden;
  background: var(--text-para);
  flex-shrink: 0;
}

.fabric-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fabric-card__body {
  background: var(--cloud);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.fabric-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--graphite);
  margin: 0;
}

.fabric-card__list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.fabric-card__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-para);
  border-top: 1px solid rgba(82, 96, 115, 0.1);
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 8px;
}

.fabric-card__marker {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  display: block;
}

.fabric-card__marker::after {
  content: '';
  position: absolute;
  left: 29.17%;
  right: 29.17%;
  top: 29.17%;
  bottom: 29.17%;
  border: 2px solid var(--deep-blue);
  border-radius: 50%;
}

@media (max-width: 767px) {
  .fabrics-section {
    padding: 60px 0;
  }

  .fabrics-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .fabrics-section__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .fabrics-section__lead {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .fabrics-section .row {
    --bs-gutter-y: 20px;
  }

  .fabric-card__photo {
    height: 220px;
  }

  .fabric-card__body {
    padding: 20px;
  }

  .fabric-card__title {
    font-size: 16px;
  }
}

/* BLOCK 9 — contacts (Frame 1171275597) */
.contacts-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  padding: 100px 0 0;
  gap: 50px;
  background: var(--white);
  scroll-margin-top: 0;
  overflow-x: clip;
}

/* Карта на всю ширину окна (вне ограничений flex-родителя) */
.contacts-map-bleed {
  display: block;
  flex: none;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  box-sizing: border-box;
}

.contacts-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.contacts-heading__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 45px;
  color: var(--graphite);
}

.contacts-heading__lead {
  margin: 0;
  max-width: 396px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--graphite);
}

.contacts-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.contacts-map {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 500px;
  margin: 0;
  overflow: hidden;
  background: #dde3ea;
  isolation: isolate;
}

/* Карта только в __media; метка — соседний слой, при смене карты не двигается */
.contacts-map__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.contacts-map__iframe,
.contacts-map__canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.contacts-map__canvas {
  z-index: 1;
  display: none;
}

.contacts-map--ready .contacts-map__canvas {
  display: block;
}

.contacts-map--ready .contacts-map__fallback {
  display: none;
}

/* Статичный кадр из Figma: положите contacts-map.jpg и добавьте класс contacts-map__media--static на __media */
.contacts-map__media--static .contacts-map__iframe {
  display: none;
}

.contacts-map__media--static::before {
  content: '';
  position: absolute;
  width: 1968px;
  height: 847px;
  left: calc(50% - 984px - 31px);
  top: -149px;
  background: url('../images/contacts-map.jpg') center / cover no-repeat;
  pointer-events: none;
}

.contacts-item__value--address {
  color: var(--graphite);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contacts-item__value--address:hover {
  color: var(--graphite);
  opacity: 0.8;
}

.contacts-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 474px;
  max-width: 100%;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow:
    0 16px 32px -4px rgba(12, 12, 13, 0.1),
    0 4px 4px -4px rgba(12, 12, 13, 0.05);
  box-sizing: border-box;
}

.contacts-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.contacts-item__icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.contacts-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.contacts-item__value {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--graphite);
}

.contacts-item__value--link {
  color: var(--deep-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contacts-item__value--link:hover {
  color: var(--deep-blue);
  opacity: 0.8;
}

.contacts-item__note {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--text-para);
}

.contacts-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.contacts-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 200px;
  height: 48px;
  padding: 14px 30px;
  border: 0;
  border-radius: 6px;
  background: var(--deep-blue);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contacts-panel__btn:hover {
  color: var(--white);
  background: var(--graphite);
}

.contacts-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: none;
}

.contacts-social__link {
  display: block;
  flex: none;
  line-height: 0;
  transition: opacity 0.2s;
}

.contacts-social__link:hover {
  opacity: 0.85;
}

.contacts-social__link img {
  display: block;
  width: 48px;
  height: 48px;
}

@media (min-width: 992px) {
  .contacts-stage {
    height: 500px;
  }

  .contacts-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .contacts-panel {
    position: absolute;
    left: max(60px, calc((100vw - 1440px) / 2 + 60px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .contacts-map__media {
    left: 0;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: auto;
  }

  .contacts-map__iframe,
  .contacts-map__canvas {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
}

@media (max-width: 991px) {
  .contacts-section {
    padding: 60px 0 0;
    gap: 30px;
  }

  .contacts-heading {
    padding: 0 20px;
    box-sizing: border-box;
  }

  .contacts-heading__lead {
    max-width: 335px;
  }

  .contacts-map-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .contacts-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    height: auto;
    padding: 0 20px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .contacts-panel {
    position: static;
    order: 1;
    width: 100%;
    max-width: 335px;
    padding: 20px;
    gap: 20px;
  }

  .contacts-map {
    position: relative;
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }

  .contacts-map__media {
    left: 0;
    width: 100%;
  }

  .contacts-actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .contacts-panel__btn {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .contacts-map__media--static::before {
    left: calc(50% - 984px - 36.5px);
    top: -143px;
  }

  .contacts-map__iframe,
  .contacts-map__canvas {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: none;
  }
}

/* FOOTER (Frame 82) */
.site-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
  gap: 45px;
  background: var(--graphite);
}

.site-footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  min-width: 0;
}

.site-footer__logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.5;
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 40px;
}

.site-footer__copy,
.site-footer__privacy {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--white);
  opacity: 0.5;
}

.site-footer__privacy {
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-footer__privacy:hover {
  color: var(--white);
  opacity: 0.7;
}

@media (max-width: 991px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 30px;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .site-footer__copy {
    max-width: 206px;
  }
}


.loading {
	display:block;
	padding:10px 15px;
	color:#fff;
	background: grey;
	margin:20px 0;
	border:6px;
}

.error-message {
	display:block;
	padding:10px 15px;
	color:#fff;
	background: red;
	margin:20px 0;
	border:6px;
}

.sent-message {
	display:block;
	padding:10px 15px;
	color:#fff;
	background: green;
	margin:20px 0;
	border:6px;
}