/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #007aff;
  --blue-hover: #0056b3;
  --blue-light: rgba(0, 122, 255, 0.15);
  --blue-light-hover: rgba(0, 122, 255, 0.25);
  --bg: #f2f2f7;
  --white: #ffffff;
  --black: #000000;
  --dark-overlay: rgba(11, 13, 31, 0.9);
  --dark-overlay-light: rgba(11, 13, 31, 0.7);
  --border-header: rgba(84, 84, 86, 0.34);
  --divider: #e8e8e8;
  --input-border: #79747e;
  --input-label: #49454f;
  --red: #ff3b30;
  --purple: #af52de;
  --yellow: #ffcc00;
  --orange: #ff9500;
  --shadow-card: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 0px 6px 0px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Font sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 3rem;

  /* Z-index layers */
  --z-content: 1;
  --z-header: 100;
  --z-menu: 110;
  --z-burger: 120;
  --z-modal: 200;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-50px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(50px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

.animate-on-scroll.scale {
  transform: scale(0.95);
}

.animate-on-scroll.scale.visible {
  transform: scale(1);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-header);
  animation: fadeInDown 0.5s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.header__logo {
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 38px;
  width: auto;
  display: block;
  max-width: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__nav-link {
  padding: 4px;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}

.header__nav-link:hover {
  color: var(--blue);
  transform: scale(1.05);
}

.header__nav-link:active {
  transform: scale(0.95);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__phone-number {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.header__cta {
  background: var(--blue-light);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.header__cta:hover {
  background: var(--blue-light-hover);
  transform: scale(1.05);
}

.header__cta:active {
  transform: scale(0.95);
}

/* ===== HERO ===== */
.hero {
  padding-top: 80px;
  width: 100%;
}

.hero__wrapper {
  padding: 16px;
}

.hero__block {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  /* 80px (header height) + 16px * 2 (wrapper padding) */
  height: calc(100vh - 112px);
  border-radius: 16px;
  overflow: hidden;
  animation: scaleIn 0.8s ease;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 16px;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(to right, rgba(11, 13, 31, 0.9), rgba(11, 13, 31, 0));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: var(--z-content);
  padding-left: 120px;
  animation: fadeInLeft 0.8s ease 0.3s both;
}

.hero__logo img {
  height: auto;
}

.hero__title {
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.96px;
}

.hero__title span {
  color: var(--blue);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 16px 64px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 314px; */
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary--full {
  width: 100%;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg);
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about__top {
  display: flex;
  padding-left: 136px;
  gap: 16px;
  overflow: hidden;
}

.about__text,
.about__photo {
  flex: 0 0 50%;
}

.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.about__title {
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
}

.about__desc {
  line-height: 1.71;
}

.about__photo {
  position: relative;
  aspect-ratio: 603 / 556;
  /* зберігає пропорції контейнера */
  overflow: hidden;
  flex-shrink: 0;
}

.about__photo-layer1,
.about__photo-layer2,
.about__photo-img {
  position: absolute;
  border-radius: 8px 0 0 8px;
}

.about__photo-layer1 {
  background: var(--blue-light);
  top: 20px;
  right: 0;
  bottom: 0;
  left: 20px;
}

.about__photo-layer2 {
  background: rgba(0, 0, 0, 0.12);
  top: 0;
  right: 0;
  bottom: 20px;
  left: 0;
}

.about__photo-img {
  top: 10px;
  right: 0;
  bottom: 10px;
  left: 10px;
  overflow: hidden;
}

.about__photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* збереження пропорцій + обрізка при потребі */
  object-position: 20% 50%;
  /* підлаштуйте при потребі */
  display: block;
  max-width: none;
}

/* Stats */
.about__stats {
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 306px;
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat__icon {
  width: 78px;
  height: 77px;
  flex-shrink: 0;
}

.stat__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.stat__icon--small {
  width: 90px;
  height: 69px;
  overflow: hidden;
}

.stat__icon--small img {
  width: 114.25%;
  height: 124.57%;
  margin-left: -6.86%;
  margin-top: -11.42%;
  max-width: none;
}

.stat__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  line-height: 1.2;
}

.stat__number {
  font-weight: 600;
  font-size: var(--fs-2xl);
  color: var(--blue);
  letter-spacing: -0.64px;
}

.stat__label {
  letter-spacing: -0.32px;
}

/* ===== HOW WE WORK ===== */
.how-we-work {
  background: var(--white);
  padding: 64px 0;
  overflow: hidden;
}

.how-we-work__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  margin-bottom: 48px;
}

/* Icon Cards */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}

.icon-card__icon--blue {
  background: var(--blue);
}

.icon-card__icon--purple {
  background: var(--purple);
}

.icon-card__icon--yellow {
  background: var(--yellow);
}

.icon-card__icon--red {
  background: var(--red);
}

.icon-card__icon--orange {
  background: var(--orange);
}

.icon-card__icon svg {
  width: 32px;
  height: 32px;
}

.icon-card__title {
  font-weight: 600;
  line-height: 1.4;
}

.icon-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.4;
}

/* Timeline / Steps */
.timeline {
  position: relative;
  margin-bottom: 48px;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 122, 255, 0.15);
  transform: translateX(-50%);
}

.timeline__step {
  position: relative;
  margin-bottom: 64px;
}

.timeline__step:last-child {
  margin-bottom: 0;
}

.timeline__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.timeline__card {
  background: var(--bg);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s;
}

.timeline__card:hover {
  transform: scale(1.02);
}

.timeline__card-title {
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.timeline__card-text {
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
}

.timeline__empty {
  /* empty placeholder */
}

.how-we-work__cta {
  display: flex;
  justify-content: center;
}

/* ===== PHOTO GALLERY ===== */
.gallery {
  display: flex;
  height: 320px;
  width: 100%;
}

.gallery__item {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ===== SERVICES ===== */
.services {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  min-height: 797px;
}

.services__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  line-height: 1.2;
}

.services__subtitle {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.services__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.service-card {
  flex: 1;
  min-width: 380px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__title {
  font-weight: 600;
  line-height: 1.4;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-card__list p {
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.service-card__divider {
  height: 1px;
  background: var(--divider);
  width: 100%;
}

.services__cta {
  display: flex;
  justify-content: center;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  height: 346px;
  width: 100%;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-overlay-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cta-banner__content {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 135px 64px 136px;
  text-align: center;
}

.cta-banner__title {
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  color: var(--white);
}

.cta-banner__text {
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--white);
}

/* ===== FAQ ===== */
.faq {
  background: var(--white);
  min-height: 788px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
}

.faq__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
}

.faq__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.faq__question {
  flex: 1;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: #2563eb;
}

.faq__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq__item.active .faq__answer {
  max-height: 200px;
  opacity: 1;
}

.faq__answer p {
  font-family: 'Roboto', sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  margin-top: 16px;
}

/* ===== REVIEWS ===== */
.reviews {
  min-height: 754px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  justify-content: center;
  padding: 80px;
  overflow: hidden;
}

.reviews__header {
  display: flex;
  align-items: center;
  gap: 48px;
}

.reviews__title {
  flex: 1;
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
}

.reviews__arrows {
  display: flex;
  gap: 24px;
}

.reviews__arrow {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.07);
  transition: background 0.2s, transform 0.2s;
}

.reviews__arrow:hover {
  background: var(--blue);
  transform: scale(1.1);
}

.reviews__arrow:hover svg path {
  fill: white;
  stroke: white;
}

.reviews__arrow:active {
  transform: scale(0.9);
}

.reviews__arrow svg {
  width: 24px;
  height: 24px;
}

.reviews__slider {
  overflow: hidden;
  max-width: 1360px;
  padding: 16px 0;
}

.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.review-card {
  width: 373px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.review-card__inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 320px;
}

.review-card__text {
  font-family: 'Roboto', sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.review-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--fs-md);
  font-family: 'Roboto', sans-serif;
  flex-shrink: 0;
}

.review-card__details {
  flex: 1;
  font-family: 'Roboto', sans-serif;
}

.review-card__name {
  font-size: var(--fs-md);
  line-height: 1.6;
}

.review-card__date {
  line-height: 1.4;
  color: #475569;
}

.reviews__cta {
  display: flex;
  justify-content: center;
}

/* ===== CONTACTS ===== */
.contacts {
  background: var(--white);
  padding: 80px;
}

.contacts__inner {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.contacts__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts__title {
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.2;
}

.contacts__desc {
  line-height: 1.79;
}

.contacts__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.contacts__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contacts__badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contacts__badge span {
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.contacts__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 31px;
  align-items: flex-end;
}

/* Form fields */
.form-field {
  position: relative;
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--fs-base);
  color: #1d1b20;
  border-radius: 4px;
}

.form-field textarea {
  height: 88px;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999;
}

.form-field__label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: white;
  padding: 0 4px;
  font-family: 'Roboto', sans-serif;
  font-size: var(--fs-xs);
  color: var(--input-label);
  letter-spacing: 0.4px;
  line-height: 16px;
}

.form-notify {
  width: 100%;
}

.form-alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin-top: 12px;
}

.form-alert--error {
  background: #fdeded;
  border-left: 4px solid #d32f2f;
  color: #5f2120;
}

.form-alert--success {
  background: #edf7ed;
  border-left: 4px solid #2e7d32;
  color: #1e4620;
}

.form-alert__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.form-alert__content p {
  margin: 0;
}

.form-alert__content p+p {
  margin-top: 4px;
}

button[type="submit"]:disabled,
.modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 0 80px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  padding: 24px 0;
}

.footer__logo {
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1;
}

.footer__logo-link {
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.footer__logo-link img {
  height: 38px;
  width: auto;
  display: block;
  max-width: none;
}

.footer__copy {
  flex: 1;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  line-height: 1.4;
}

.footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__social {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.footer__social:hover {
  transform: scale(1.2);
}

.footer__social:active {
  transform: scale(0.9);
}

.footer__social svg {
  width: 100%;
  height: 100%;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 448px;
  width: 90%;
  position: relative;
  animation: scaleIn 0.2s ease;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal__title {
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: 8px;
}

.modal__desc {
  font-size: var(--fs-sm);
  color: #717182;
  margin-bottom: 24px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__field label {
  font-weight: 500;
  font-size: var(--fs-sm);
}

.modal__field input,
.modal__field textarea {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color 0.2s;
}

.modal__field input:focus,
.modal__field textarea:focus {
  border-color: var(--blue);
}

.modal__field textarea {
  resize: none;
  height: 100px;
}

.modal__submit {
  background: var(--blue);
  color: var(--white);
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background 0.2s;
}

.modal__submit:hover {
  background: var(--blue-hover);
}

/* ===== BURGER BUTTON (hidden on desktop) ===== */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: var(--z-burger);
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE — TABLET (max 1024px) ===== */
@media (max-width: 1280px) {
  .header__burger {
    display: flex;
  }

  .header__nav-link {
    display: none;
  }

  .header__phone {
    margin-left: auto;
  }

  /* When burger menu is open — show links as side panel */
  .header__nav.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 80px 24px 32px;
    gap: 0;
    z-index: var(--z-menu);
    overflow-y: auto;
    height: fit-content;
  }

  .header__nav.open .header__nav-link {
    display: block;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
    width: 100%;
  }

  .header__nav.open .header__phone {
    margin-left: 0;
    padding: 16px 0;
  }

  .header__nav.open .header__cta {
    width: 100%;
    margin-top: 8px;
  }

  .hero__content {
    padding-left: 60px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .about {
    padding: 80px 0;
    gap: 60px;
  }

  .about__top {
    flex-direction: column;
    padding: 0 24px;
  }

  .about__text,
  .about__photo {
    flex: none;
    width: 100%;
  }

  .about__photo {
    aspect-ratio: 16 / 10;
  }

  .about__stats {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
  }

  .stat {
    width: auto;
  }

  .icon-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline__grid {
    grid-template-columns: 1fr;
  }

  .timeline__empty {
    display: none;
  }

  .timeline__line {
    left: 6px;
  }

  .timeline__dot {
    left: 6px;
  }

  .timeline__card {
    margin-left: 32px;
  }

  .services {
    padding: 60px 24px;
  }

  .service-card {
    min-width: 100%;
  }

  .cta-banner__content {
    padding: 60px 24px;
  }

  .faq {
    padding: 60px 24px;
  }

  .reviews {
    padding: 60px 24px;
    gap: 40px;
  }

  .contacts {
    padding: 60px 24px;
  }

  .contacts__inner {
    flex-direction: column;
  }

  .footer {
    padding: 0 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===== RESPONSIVE — MOBILE (max 640px) ===== */
@media (max-width: 640px) {

  .header__phone,
  .header__cta {
    display: none;
  }

  .header__nav.open .header__phone,
  .header__nav.open .header__cta {
    display: inline;
  }

  .hero__wrapper {
    padding: 8px;
  }

  .hero__block {
    height: calc(100vh - 96px);
  }

  .hero__content {
    padding: 24px;
    gap: 24px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__title br {
    display: none;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__subtitle br {
    display: none;
  }

  .btn-primary {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

  .about {
    padding: 48px 0;
    gap: 40px;
  }

  .about__top {
    padding: 0 16px;
    gap: 24px;
  }

  .about__text {
    gap: 24px;
  }

  .about__title {
    font-size: 26px;
  }

  .about__photo {
    aspect-ratio: 4 / 3;
  }

  .about__stats {
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
  }

  .stat {
    width: 100%;
    max-width: 320px;
  }

  .stat__number {
    font-size: 28px;
  }

  .how-we-work {
    padding: 48px 0;
  }

  .how-we-work__inner {
    padding: 0 16px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .gallery {
    height: 200px;
  }

  .services {
    padding: 48px 16px;
    gap: 32px;
    min-height: auto;
  }

  .services__subtitle {
    font-size: 16px;
  }

  .cta-banner {
    height: auto;
    min-height: 280px;
  }

  .cta-banner__content {
    padding: 48px 16px;
    gap: 24px;
  }

  .cta-banner__title {
    font-size: 26px;
  }

  .cta-banner__text {
    font-size: 16px;
  }

  .faq {
    padding: 48px 16px;
    min-height: auto;
  }

  .faq__inner {
    gap: 40px;
  }

  .faq__question {
    font-size: 18px;
    text-align: left;
  }

  .faq__answer p {
    font-size: 16px;
  }

  .faq__item {
    padding: 20px 0;
  }

  .reviews {
    padding: 48px 16px;
    gap: 32px;
    min-height: auto;
  }

  .reviews__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .reviews__title {
    font-size: 26px;
  }

  .review-card {
    width: 280px;
  }

  .review-card__inner {
    padding: 20px;
    height: auto;
    min-height: 260px;
  }

  .review-card__text {
    font-size: 16px;
  }

  .review-card__avatar {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .contacts {
    padding: 48px 16px;
  }

  .contacts__title {
    font-size: 26px;
  }

  .contacts__badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    padding: 0 16px;
  }

  .footer__inner {
    padding: 20px 0;
  }

  .animate-on-scroll.from-left {
    transform: translateX(-30px);
  }

  .animate-on-scroll.from-right {
    transform: translateX(30px);
  }
}
