/* ============================================
   UTMarine — index styles
   Layered on top of Bootstrap 5.3
   ============================================ */

:root {
  --black:       #121212;
  --dark:        #232323;
  --accent:      #FFCB03;
  --white:       #FFFFFF;
  --grey:        #D9D9D9;
  --light-grey:  #F0F0F0;

  --font: "Google Sans", "Google Sans Flex", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm:  4px;
  --radius-md:  8px;

  --section-pad-x: 48px;
}

html, body {
  background: #F0F0F0;
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { margin: 0; }

/* ============================================
   MODAL — subtitle above title
   ============================================ */
.modal-subtitle {
  display: inline-block;
  font-size: 14px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.modal-title { font-size: 24px; }

/* Compact request modal form */
#requestModal .modal-header {
  padding: 16px 20px 4px;
}
#requestModal .modal-body {
  padding: 8px 20px 16px;
}
#requestModal .modal-subtitle {
  margin-bottom: 2px;
}
#requestModal .form-label {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.2;
}
#requestModal .mb-3 {
  margin-bottom: 10px !important;
}
#requestModal .form-control,
#requestModal .form-select {
  padding: 6px 12px;
  min-height: 38px;
  font-size: 15px;
}
#requestModal textarea.form-control {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
#requestModal .consent-block {
  margin-bottom: 10px;
  padding: 10px 12px;
  gap: 8px;
}

/* ============================================
   CONSENT CHECKBOXES in modal
   ============================================ */
.consent-block {
  margin: 0 0 1rem;
  padding: 14px 16px;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}
.consent-block .consent-check.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  padding-left: 0 !important;
  min-height: 0;
}
.consent-block .consent-check__input.form-check-input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0 0 !important;
  padding: 0;
  float: none;            /* override Bootstrap float + negative margin */
  position: relative;       /* checkmark is positioned against the box */
  border: 1px solid var(--grey);
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.consent-block .consent-check__input.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: none;
}
.consent-block .consent-check__input.form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-block .consent-check__input.form-check-input:focus,
.consent-block .consent-check__input.form-check-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 203, 3, 0.25);
  outline: none;
}
.consent-block .consent-check__label.form-check-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--black);
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.consent-check__label a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.consent-check__label a:hover {
  color: var(--accent);
}
.consent-check.is-invalid .consent-check__input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.hero__cta[disabled],
.hero__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--accent);
  color: var(--black);
}
.hero__cta[disabled]:hover,
.hero__cta:disabled:hover {
  background: var(--accent);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  min-height: 100vh;
  padding: 40px 48px 0;
  overflow: hidden;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero__logo {
  flex: 0 0 250px;
  display: block;
}

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


.hero__logo-mark {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 800;
  font-size: 20px;
}

.hero__nav {
  display: flex;
  gap: 50px;
}
.hero__nav a {
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.hero__nav a:hover { opacity: 0.8; }

.hero__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
@media (max-width: 1399px) {
  .hero__contacts { flex-direction: column; align-items: flex-end; gap: 8px; }
  .hero__phone { font-size: 22px; }
}
.hero__phone {
  color: var(--accent);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.hero__phone:hover { opacity: 0.85; }

/* ============================================
   BURGER MENU (mobile)
   ============================================ */
.burger {
  display: none;            /* hidden on desktop */
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;        /* sit on the right of the header */
}
.burger__line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.burger-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--black);
  color: var(--white);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
.burger-panel.open {
  transform: translateX(0);
}
.burger-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 12px;
  margin-bottom: 32px;
}
.burger-panel__close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.burger-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.burger-panel__nav a {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.burger-panel__nav a:hover,
.burger-panel__nav a:active { color: var(--accent); }
.burger-panel__contacts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.burger-panel__phone {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.hero__logo--menu { color: var(--accent); }

.burger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.burger-overlay.show {
  opacity: 1;
  visibility: visible;
}

.btn-max {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}
.btn-max:hover { background: #2d2d2d; color: var(--white); }
.btn-max--sm { padding: 12px 16px; font-size: 16px; gap: 8px; }
.btn-max--sm .btn-max__icon { width: 18px; height: 18px; }
.btn-max__icon {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* Intro: headline, lead, CTA and boat art. Image is positioned against this block, not the whole hero. */
.hero__intro {
  position: relative;
}
.hero__title-block {
  margin-top: 113px;
  max-width: 1385px;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
}
.hero__title-accent { color: var(--accent); }
.hero__title-soft { color: var(--white); font-weight: 400; }

.hero__lead {
  margin-top: 40px;
  max-width: 455px;
  color: var(--grey);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.hero__cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--black);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.hero__cta:hover { background: #ffd83d; color: var(--black); }

/* Hero image on the right */
.hero__image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1021px;
  max-width: 64%;
  height: auto;
  aspect-ratio: 26 / 8;
  background: linear-gradient(135deg, #1a3a52 0%, #0a1a26 100%);
  background-image:
    linear-gradient(to right, var(--black) 0%, rgba(18,18,18,0.55) 12%, rgba(18,18,18,0.18) 28%, transparent 42%),
    url("../img/hero-image.png");
  background-size: cover, contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  border-radius: 0;
  z-index: 0;
}
.hero__image::after { content: none; }

/* Service cards row in hero */
.hero__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 31px;
  margin-top: 120px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}
@media (min-width: 1500px) {
  .hero__cards { margin-top: 200px; padding-bottom: 100px; }
}
.hero-card {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 40px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-card:hover { transform: translateY(-2px); background: #2a2a2a; }
.hero-card__title {
  color: var(--accent);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.hero-card__text {
  color: var(--grey);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section {
  width: 100%;
  padding: 50px 0;
}
.section--white { background: #F0F0F0; }
.section__title {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 30px;
  color: var(--black);
}
.section__container {
  max-width: 1504px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================
   TECH TYPES — 2x2 grid of image cards
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
}
.tech-card {
  position: relative;
  height: 312px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #2a2a2a;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%),
    linear-gradient(135deg, #34536b 0%, #0f1f2c 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.tech-card:hover { transform: translateY(-3px); }

.tech-card--hydro,
.tech-card--plastic,
.tech-card--boat,
.tech-card--yacht {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%),
    url("../img/technics-type.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.tech-card__title {
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.2;
}

.tech-card__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  width: 232px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.tech-card__btn:hover {
  background: var(--accent);
  color: var(--black);
}

/* ============================================
   SERVICE ACCORDION
   ============================================ */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.acc-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.acc-item__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: var(--white);
  padding: 30px 40px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-md);
}
.acc-item.open .acc-item__title {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}
.acc-item.open .acc-item__title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4.5px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.acc-item__title:hover { background: #2a2a2a; }

.acc-item__arrow {
  width: 32px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.acc-item.open .acc-item__arrow { transform: rotate(180deg); }

.acc-item__body {
  background: var(--white);
  max-height: 0;
  padding: 0 40px;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.acc-item.open .acc-item__body {
  max-height: 1600px;
  padding: 30px 40px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .acc-item__body { transition: none; }
}

.acc-item__row {
  display: flex;
  align-items: center;
  gap: 45px;
}
.acc-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 73px;
  min-width: 0;
}
.acc-item__lead {
  color: var(--black);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}
.acc-item__image {
  width: 380px;
  min-height: 566px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #34536b 0%, #0f1f2c 100%);
  background-size: cover;
  background-position: center;
}


.subcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.subcard {
  background: var(--light-grey);
  border: 1px solid var(--grey);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.subcard:hover {
  background: #fff;
  border-color: var(--accent);
}
.subcard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.subcard:active { transform: scale(0.99); }
.subcard__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1399px) {
  .hero { padding: 32px; }
  .hero__image { width: 70%; height: auto; }
  .section__container { padding: 0 32px; }
}

@media (max-width: 1199px) {
  .hero__cards { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .hero__image { width: 70%; height: auto; bottom: 0; top: auto; }
  .hero__title { font-size: 48px; }
  .acc-item__title { font-size: 28px; padding: 22px 28px; }
  .acc-item.open .acc-item__body { padding: 24px; }
  .acc-item__row { flex-direction: column; }
  .acc-item__image { width: 100%; height: 320px; }
  .subcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .burger { display: inline-flex; margin-left: 12px; }
  .hero__logo { margin-right: auto; }
  .hero__top { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .hero__nav { display: none; }
  .hero__contacts { display: none; }
  .hero__title { font-size: 28px; line-height: 1.1; }
  .hero__title-block { margin-top: 40px; }
  .hero__lead {
    font-size: 18px;
    line-height: 1.35;
    margin-top: 24px;
    max-width: 60%;
    position: relative;
    z-index: 2;
  }
  .hero__cta { margin-top: 24px; padding: 14px 22px; font-size: 16px; position: relative; z-index: 2; }
  .hero__cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding-bottom: 32px; }
  .hero-card { min-height: 0; padding: 20px 20px 40px; gap: 14px; }
  .hero-card__title { font-size: 22px; }
  .hero-card__text { font-size: 15px; line-height: 1.4; }
  .hero__image {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    width: 70%;
    max-width: 70%;
    height: 198px;
    aspect-ratio: auto;
    margin-top: 0;
    background-image: url("../img/hero-image.png");
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  .section { padding: 48px 0; }
  .section__title { font-size: 26px; line-height: 1.15; }
  .section__lead { font-size: 16px; }
  .section__container { padding: 0 16px; }
  .tech-grid { gap: 16px; }
  .tech-card { height: 200px; padding: 20px; }
  .tech-card__title { font-size: 22px; }
  .tech-card__btn { padding: 10px 16px; font-size: 14px; }
  .subcard-grid { grid-template-columns: 1fr; gap: 10px; }
  .subcard { padding: 14px 16px; line-height: 1.35; min-height: 0; }
  .subcard__title { font-size: 16px; }
  .accordion-stack { gap: 8px; }
  .acc-item__lead { font-size: 17px; line-height: 1.4; margin: 0; }
  .acc-item__title { font-size: 20px; padding: 16px 18px; }
  .acc-item.open .acc-item__body { padding: 16px; font-size: 15px; }
  .acc-item__row { gap: 20px; }
  .acc-item__image { height: 200px; }
  .acc-item__content { gap: 16px; }
  h4 { font-size: 17px; font-weight: 700; line-height: 1.3; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { padding: 20px; min-height: auto; }
  .benefit-card__digit { font-size: 36px; padding: 8px 12px; left: 20px; top: 16px; }
  .benefit-card__text { font-size: 16px; margin-top: 56px; }
  .steps-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 8px; }
  .step-card { padding: 20px; }
  .step-card__title { font-size: 20px; }
  .step-card__digit { font-size: 56px; }
  .step-card__text { font-size: 15px; }
  .cta-card { grid-column: 1; padding: 20px; gap: 16px; }
  .cta-card__title { font-size: 22px; line-height: 1.2; }
  .cta-card__btn { font-size: 14px; padding: 10px 14px; }
  .footer__title { font-size: 22px; }
  .footer { padding: 32px 0 24px; }
  .footer__top { gap: 24px; }
  .footer-contacts { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-contacts__item { gap: 12px; }
  .footer-contacts__icon { width: 48px; height: 48px; font-size: 28px; }
  .footer-contacts__phone { font-size: 22px; }
  .footer-contacts__address { font-size: 14px; }
  .footer-map__photo { height: 220px; }
  .footer-map__iframe { height: 280px; }
  .footer-bottom { flex-direction: column; gap: 16px; padding-top: 16px; }
  .footer-bottom__brand,
  .footer-bottom__contacts { width: 100%; font-size: 12px; }
  .project-card { height: 320px; }
  .projects-swiper .swiper-slide { height: 320px; }
  /* Keep arrows inside the slide: outer 64px gutter + left:8px clips them on a phone. */
  .projects-swiper { padding: 0; margin: 0; }
  .projects-nav { width: 36px; height: 36px; font-size: 18px; }
  .projects-nav--prev { left: 8px; }
  .projects-nav--next { right: 8px; }
  .projects-dots { margin-top: 12px; min-height: 0; gap: 8px; }
  .projects-dots .dot { width: 12px; height: 12px; }
  .project-card__title { font-size: 20px; }
  .project-modal__head,
  .project-modal__caption { padding-left: 16px; padding-right: 16px; }
  .project-modal__title { font-size: 20px; }
  .project-modal__caption { font-size: 14px; }
  .project-modal-swiper { height: 60vh; }
  .modal-content { padding: 20px 16px; }
}


/* ============================================
   BENEFITS
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.benefit-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-md);
  padding: 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  overflow: hidden;
}
.benefit-card__digit {
  position: absolute;
  top: 0;
  left: 30px;
  background: var(--accent);
  color: var(--black);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 0 0 4px 4px;
  font-variant-numeric: tabular-nums;
}
.benefit-card__text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--black);
}

/* ============================================
   PROJECTS — Swiper slider
   ============================================ */
.projects-swiper {
  position: relative;
  padding: 0 64px;
  margin: 0 -64px;
  overflow: hidden;
}
.projects-swiper .swiper-slide {
  height: 548px;       /* explicit, otherwise slides collapse to 0 */
  box-sizing: border-box;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  height: 548px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark);
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  isolation: isolate;
}
.project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__image { transform: scale(1.03); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.project-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.project-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  display: block;
}
.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-card__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
}
.project-card__cta-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
}

.projects-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s ease;
}
.projects-nav:hover { background: #ffd83d; }
.projects-nav:disabled,
.projects-nav.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.projects-nav--prev { left: 8px; }
.projects-nav--next { right: 8px; }
.projects-nav i { line-height: 1; }

.projects-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  min-height: 20px;
}
.projects-dots .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #666;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.projects-dots .dot.is-active {
  background: var(--accent);
  transform: scale(1.1);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 177px);
  gap: 32px 30px;
}
.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.step-card__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}
.step-card__digit {
  position: absolute;
  right: 10px;
  bottom: 0;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--light-grey);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.cta-card {
  grid-column: 3 / 5;
  background: var(--accent);
  color: var(--black);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  overflow: hidden;
}
.cta-card__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--black);
}
.cta-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  min-width: 0;
}
.cta-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.cta-card__btn:hover { background: #2a2a2a; color: var(--white); }
.cta-card__btn--accent-text { color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 30px;
}
.footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}
.footer__title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin: 0;
}

.footer-contacts {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.footer-contacts__item {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer-contacts__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-contacts__text {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.footer-contacts__main {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  color: var(--white);
}
.footer-contacts__meta {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--grey);
  opacity: 0.6;
}
.footer-contacts__phone {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
}
.footer-contacts__phone:hover { opacity: 0.85; }
.footer-contacts__email {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  margin: 0;
}
.footer-contacts__email:hover { text-decoration: underline; }
.footer-contacts__btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 16px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
}

.footer-map {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}
.footer-map__photo,
.footer-map__iframe {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}
.footer-map__photo {
  flex: 0 0 480px;
  height: 640px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%),
    url("../img/footer-entrance.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.footer-map__iframe {
  flex: 1;
  height: 640px;
}
.footer-map__iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}
.footer-bottom__brand {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-bottom__logo {
  display: block;
}

.footer-bottom__logo img {width:200px;}

.footer-bottom__copy {
  font-size: 18px;
  margin: 0;
  color: var(--white);
}
.footer-bottom__legal {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}
.footer-bottom__legal a {
  font-size: 18px;
  color: var(--grey);
  text-decoration: none;
}
.footer-bottom__legal a:hover { color: var(--white); }
.footer-bottom__contacts {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-bottom__addr {
  font-size: 18px;
  margin: 0;
  color: var(--white);
  line-height: 1.3;
}
.footer-bottom__phone {
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.footer-bottom__social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-bottom__max {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  text-decoration: none;
}
.footer-bottom__btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.footer-bottom__btn:hover { color: var(--white); }

/* ============================================
   PROJECT MODAL
   ============================================ */
.project-modal .modal-body { position: relative; }
.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  filter: invert(1);
}
.project-modal__head {
  padding: 18px 60px;
  border-bottom: 1px solid #2a2a2a;
}
.project-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.project-modal-swiper {
  position: relative;
  height: 80vh;
  background: #000;
}
.project-modal-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal__img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: 80vh;
  object-fit: scale-down;

}
.project-modal__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.project-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 32px;
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 4;
  cursor: pointer;
}
.project-modal__nav:hover { background: #ffd83d; }
.project-modal__nav--prev { left: 12px; }
.project-modal__nav--next { right: 12px; }
.project-modal__caption {
  margin: 0;
  padding: 14px 60px;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.4;
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  min-height: 52px;
}

/* ============================================
   RESPONSIVE for new sections
   ============================================ */
@media (max-width: 1399px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .cta-card { grid-column: 1 / 3; }
  .cta-card__btn { font-size: 16px; padding: 12px 16px; }
  .footer-map { flex-direction: column; }
  .footer-map__photo { flex: 0 0 auto; width: 100%; height: 320px; }
  .footer-map__iframe { width: 100%; height: 380px; }
}
@media (max-width: 1199px) {
  .benefit-card { min-height: 200px; padding: 24px; }
  .benefit-card__digit { left: 24px; padding: 10px 14px; font-size: 44px; }
  .benefit-card__text { font-size: 20px; }
  .project-card { height: 460px; }
  .step-card__title { font-size: 28px; }
  .step-card__digit { font-size: 80px; }
  .footer__title { font-size: 36px; }
  .footer-contacts__icon { width: 60px; height: 60px; font-size: 40px; }
}
@media (max-width: 991px) {
  .projects-swiper { padding: 0 50px; margin: 0 -50px; }
  .projects-nav { width: 40px; height: 40px; font-size: 20px; }
}
@media (max-width: 767px) {

    .hero__logo {
  flex: 0 0 200px;
  display: block;
}
  .benefits-grid { grid-template-columns: 1fr; }
  .step-card__title { font-size: 24px; }
  .step-card__digit { font-size: 64px; }
  .steps-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap:16px;}
  .cta-card { grid-column: 1; padding: 24px; }
  .cta-card__title { font-size: 26px; }
  .cta-card__btn { font-size: 16px; padding: 12px 16px; }
  .footer__title { font-size: 28px; }
  .footer-contacts { flex-direction: column; align-items: flex-start; }
  .footer-contacts__item { gap: 16px; }
  .footer-contacts__phone { font-size: 26px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom__brand,
  .footer-bottom__contacts { width: 100%; }
  .project-modal__head,
  .project-modal__caption { padding-left: 24px; padding-right: 24px; }
  .project-modal-swiper { height: 50vh; }

  /* Slider: later base rules (padding 64px, height 548px, dots 30px) beat the earlier mobile block. */
  .project-card { height: 320px; }
  .projects-swiper .swiper-slide { height: 320px; }
  .projects-swiper { padding: 0; margin: 0; }
  .projects-nav { width: 36px; height: 36px; font-size: 18px; }
  .projects-nav--prev { left: 8px; }
  .projects-nav--next { right: 8px; }
  .projects-dots { margin-top: 12px; min-height: 0; gap: 8px; }
  .projects-dots .dot { width: 12px; height: 12px; }
  .project-card__title { font-size: 20px; }
  .project-card__body { padding: 16px; }

  /* Step cards were sized for a 96px watermark; shrink padding so the stack isn't airy. */
  .steps-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 8px; }
  .step-card { padding: 16px 16px 12px; }
  .step-card__title { font-size: 20px; }
  .step-card__digit { font-size: 48px;}
  .step-card__text { font-size: 15px; }
  .cta-card { grid-column: 1; padding: 16px; gap: 12px; }
  .cta-card__title { font-size: 22px; line-height: 1.2; }
  .cta-card__btn { font-size: 14px; padding: 10px 14px; }

  /* Contact glyphs are 80px in the base rule, which overflows the stacked card. */
  .footer-contacts { padding: 16px; gap: 14px; }
  .footer-contacts__item { gap: 12px; align-items: flex-start; }
  .footer-contacts__icon { width: 28px; height: 28px; font-size: 22px; margin-top: 2px; }
  .footer-contacts__main,
  .footer-contacts__meta,
  .footer-contacts__email { font-size: 16px; }
  .footer-contacts__phone { font-size: 20px; }
  .footer-contacts__btn { font-size: 15px; padding: 12px 16px; }
}
/* ============================================
   TEXT / LEGAL PAGE
   ============================================ */
.page-top {
  background: var(--black);
  color: var(--white);
}
.page-top .hero__top { position: relative; }

.page {
  background: var(--white);
  color: var(--black);
}
.page__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px var(--section-pad-x) 72px;
}
.page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
}
.page__back:hover { color: var(--black); }
.page__title {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}
.page__meta {
  margin: 0 0 32px;
  color: #666;
  font-size: 15px;
}
.page__content h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.page__content p,
.page__content li {
  font-size: 17px;
  line-height: 1.55;
}
.page__content p { margin: 0 0 14px; }
.page__content ul,
.page__content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page__content li + li { margin-top: 6px; }
.page__content a { color: var(--black); }

@media (max-width: 767px) {
  .page__inner { padding: 28px 16px 48px; }
  .page__title { font-size: 28px; }
  .page__content p,
  .page__content li { font-size: 16px; }
}
