/* ===== Variables ===== */
:root {
  --cyan: #00c0e8;
  --blue: #2586fe;
  --purple: #781698;
  --magenta: #c100e8;
  --dark: #030813;
  --dark-2: #0e0e0e;
  --dark-3: #101827;
  --dark-card: #0f1626;
  --white: #ffffff;
  --gradient-primary: linear-gradient(90deg, #2586fe 0%, #781698 100%);
  --gradient-cyan: linear-gradient(180deg, #00c0e8 0%, #781698 100%);
  --font-display: "Unbounded", sans-serif;
  --font-heading: "Prosto One", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-accent: "Geometria", "Inter", sans-serif;
  --container: min(1200px, 100% - 2rem);
  --container-wide: min(1560px, 100% - 2.5rem);
  --header-h: 108px;
  --transition: 0.25s ease;
  --bp-xl: 1280px;
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 480px;
  --section-pad: clamp(3rem, 6vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--wide {
  width: var(--container-wide);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 170px;
  height: 4px;
  background: var(--cyan);
  margin: 1rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--magenta);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin: 1.5rem auto 3rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 14, 14, 0.92);
  border-bottom: 3px solid var(--blue);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: min(1640px, 100% - 2rem);
  margin-inline: auto;
  padding-inline: 0.25rem 1.25rem;
  gap: 2rem;
}

.header__logo {
  justify-self: start;
  margin-left: -0.25rem;
}

.header__logo img {
  height: 72px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  justify-self: center;
}

.header__nav a {
  font-family: var(--font-accent);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.35rem;
  transition: color var(--transition);
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--cyan);
}

.header__nav a.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  justify-self: end;
  margin-right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: #00b3ff;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 192, 232, 0.35);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--dark-2);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37, 134, 254, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero__visual {
  position: absolute;
  top: var(--header-h);
  right: 6vw;
  bottom: 0;
  width: min(72vw, 1100px);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__visual img {
  width: 100%;
  height: 92%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(520px, 42vw);
  margin-left: clamp(3rem, 9vw, 7rem);
  padding-block: 3rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1.12;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.hero__title .cyan {
  color: var(--cyan);
}

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

.hero__divider {
  width: min(100%, 420px);
  height: 4px;
  background: var(--cyan);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 0.85rem 2.25rem;
  background: var(--gradient-primary);
  border-radius: 999px;
  font-family: "Inder", var(--font-body);
  font-size: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 134, 254, 0.4);
}

/* ===== Features ===== */
.features {
  background: var(--dark-2);
  border-top: 1px solid rgba(0, 192, 232, 0.15);
  padding: 3rem 0 3.5rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 300px));
  justify-content: center;
  gap: 2rem;
}

.feature-card {
  position: relative;
  padding: 2.75rem 1.75rem 2.5rem;
  text-align: center;
  background: rgba(15, 22, 38, 0.85);
  border: 1px solid rgba(0, 192, 232, 0.25);
  border-radius: 28px;
  clip-path: polygon(0 12%, 12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 192, 232, 0.12);
}

.feature-card--accent {
  background: var(--gradient-cyan);
  border-color: rgba(255, 255, 255, 0.35);
}

.feature-card--accent:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.feature-card__shape {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card__icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 4px rgba(0, 192, 232, 0.15);
}

.feature-card--accent .feature-card__icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
}

.feature-card__icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.feature-card__icon-placeholder {
  font-size: 2.35rem;
  line-height: 1;
}

.feature-card__text {
  font-family: var(--font-accent);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== About ===== */
.about {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.about__inner {
  position: relative;
  z-index: 1;
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 3rem;
}

.about__photo-block {
  position: relative;
  max-width: 460px;
  width: 88%;
  justify-self: center;
}

.about__main-photo-wrap {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.about__main-photo {
  width: 100%;
  max-width: none;
  border-radius: 8px;
}

.about__text {
  font-size: clamp(1.25rem, 2.35vw, 1.65rem);
  font-weight: 400;
  line-height: 1.7;
  padding-top: 0.5rem;
  max-width: none;
}

.about__text p + p {
  margin-top: 1.25rem;
}

.about__photo-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  padding: 1.5rem 1.75rem;
  border: 4px solid var(--cyan);
  background: rgba(3, 8, 19, 0.75);
  pointer-events: none;
}

.about__text::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 520px;
  height: 4px;
  background: var(--cyan);
  margin-bottom: 1.5rem;
}

.about__gallery {
  margin-top: 4rem;
  width: 100%;
  max-width: 100%;
}

.gallery-slider__shell {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  width: 100%;
}

.gallery-slider__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  container-type: inline-size;
  container-name: about-carousel;
}

.gallery-slider__track {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 1.75rem);
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.gallery-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: rgba(15, 22, 38, 0.9);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-slider__arrow[hidden] {
  display: none;
}

.gallery-slider__arrow:hover {
  background: var(--blue);
  transform: scale(1.05);
}

.gallery-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-slider__dots:empty {
  display: none;
}

.gallery-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-slider__dot.is-active {
  background: var(--cyan);
  transform: scale(1.2);
}

.about__gallery-item {
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(0, 192, 232, 0.25);
  padding: 0;
  background: none;
  cursor: zoom-in;
  transition: border-color var(--transition);
}

.about__gallery-item:hover {
  border-color: var(--cyan);
}

.about__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ===== Services ===== */
.services {
  position: relative;
  padding: var(--section-pad) 0;
  background: radial-gradient(ellipse 50% 40% at 50% 60%, #0b1221 0%, #040915 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--cyan);
  border-radius: 26px;
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 192, 232, 0.15);
}

.service-card__badge {
  width: 100px;
  height: 88px;
  border-radius: 20px;
  transform: rotate(-15deg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-card__badge--cyan {
  background: linear-gradient(180deg, #00c0e8 0%, #2586fe 100%);
}

.service-card__badge--pink {
  background: linear-gradient(180deg, #c100e8 0%, #ff0980 100%);
}

.service-card__badge--orange {
  background: linear-gradient(180deg, #ff7700 0%, #ff9809 100%);
}

.service-card__badge--red {
  background: linear-gradient(180deg, #ff0000 0%, #940000 100%);
}

.service-card__badge--green {
  background: linear-gradient(180deg, #1be800 0%, #167e01 100%);
}

.service-card__badge--purple {
  background: linear-gradient(180deg, #781698 0%, #c001ff 100%);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  min-height: 3.5em;
  display: flex;
  align-items: center;
}

.service-card__price {
  color: var(--cyan);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: auto;
}

.services__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.services__cta-btn {
  padding: 0.875rem 2.5rem;
  background: linear-gradient(90deg, #00c0e8 0%, #2586fe 100%);
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.services__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 192, 232, 0.35);
}

/* ===== Contacts ===== */
.contacts {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.contacts__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.contacts__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 23, 0.72);
  z-index: 1;
}

.contacts__inner {
  position: relative;
  z-index: 2;
}

.contacts__layout {
  margin-top: 3rem;
}

.contacts__layout--centered {
  display: flex;
  justify-content: center;
}

.contacts__info {
  width: min(640px, 100%);
  background: rgba(14, 14, 14, 0.75);
  border: 1px solid rgba(0, 192, 232, 0.25);
  border-radius: 28px;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(4px);
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  box-shadow: 0 16px 40px rgba(0, 192, 232, 0.1);
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contacts__item:last-child {
  border-bottom: none;
}

.contacts__item-icon {
  flex-shrink: 0;
  width: 56px;
  height: 50px;
  border-radius: 12px;
  transform: rotate(-15deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contacts__item-icon--cyan {
  background: linear-gradient(180deg, #00c0e8 0%, #2586fe 100%);
}

.contacts__item-icon--magenta {
  background: linear-gradient(180deg, #c100e8 0%, #781698 100%);
}

.contacts__item-icon--green {
  background: linear-gradient(180deg, #1be800 0%, #167e01 100%);
}

.contacts__item-text {
  font-size: 1.25rem;
  line-height: 1.5;
}

.contacts__item-text a:hover {
  color: var(--cyan);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-3);
  border-top: 3px solid var(--blue);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 8, 19, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.mobile-nav .header__cta {
  display: inline-flex;
  margin-top: 1rem;
  border-radius: 999px;
}

.mobile-nav a.is-active {
  color: var(--cyan);
}

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

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 19, 0.92);
  border: none;
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  border: 3px solid var(--cyan);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--dark-3);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

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

/* ===== Modal / Question Form ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 19, 0.88);
  border: none;
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 2.75rem 3rem 3rem;
  background: var(--dark-card);
  border: 1px solid var(--cyan);
  border-radius: 28px;
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--dark-3);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

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

.modal__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding-right: 2.5rem;
}

.modal__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.question-form__field {
  margin-bottom: 1.5rem;
}

.question-form__label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.question-form__label span {
  color: var(--cyan);
}

.question-form__input,
.question-form__textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(3, 8, 19, 0.75);
  border: 1px solid rgba(0, 192, 232, 0.35);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.question-form__input:focus,
.question-form__textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 192, 232, 0.15);
}

.question-form__input::placeholder,
.question-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.question-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.question-form__hint {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.question-form__message {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.15rem;
  border-radius: 10px;
  font-size: 1.0625rem;
}

.question-form__message--error {
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.45);
  color: #ffb4b4;
}

.question-form__message--success {
  background: rgba(0, 192, 232, 0.12);
  border: 1px solid rgba(0, 192, 232, 0.45);
  color: var(--cyan);
}

.question-form__submit {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(90deg, #00c0e8 0%, #2586fe 100%);
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.question-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 192, 232, 0.35);
}

.question-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.question-form__input.is-invalid,
.question-form__textarea.is-invalid {
  border-color: #ff6b6b;
}

/* ===== Responsive ===== */

/* Large desktop tweaks */
@media (max-width: 1280px) {
  .hero__content {
    margin-left: clamp(2rem, 6vw, 5rem);
    width: min(480px, 44vw);
  }

  .hero__visual {
    width: min(68vw, 900px);
    right: 4vw;
  }

  .header__nav {
    gap: 2rem;
  }

  .features__grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablet (landscape & portrait) */
@media (max-width: 1024px) {
  :root {
    --container: min(1200px, 100% - 2.5rem);
    --container-wide: min(1560px, 100% - 2.5rem);
  }

  .header__inner {
    grid-template-columns: 1fr auto;
    padding-inline: 1.25rem;
    gap: 1rem;
  }

  .header__nav,
  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: flex;
    padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  }

  .mobile-nav a {
    font-size: 1.375rem;
    padding: 0.5rem 1rem;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding-bottom: 3rem;
    padding-top: var(--header-h);
  }

  .hero__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 720px;
    height: min(48vh, 420px);
    margin-inline: auto;
    order: -1;
    padding-top: 1.5rem;
  }

  .hero__visual img {
    height: 100%;
    width: 100%;
    object-position: center;
  }

  .hero__content {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    margin-left: auto;
    padding: 2rem 1.5rem 0;
    text-align: center;
  }

  .hero__divider {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__btn {
    min-width: 180px;
    font-size: 1.35rem;
  }

  .features {
    padding: 2.5rem 0 3rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .feature-card {
    padding: 2rem 1.25rem 1.75rem;
  }

  .feature-card__icon {
    width: 80px;
    height: 80px;
  }

  .feature-card__icon-placeholder {
    font-size: 2rem;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .about__photo-block {
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
  }

  .about__text {
    text-align: center;
  }

  .about__text::before {
    margin-inline: auto;
  }

  .about__gallery {
    margin-top: 3rem;
    max-width: min(400px, 100%);
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: none;
    margin-inline: 0;
  }

  .service-card__title {
    min-height: auto;
    font-size: 1.125rem;
  }

  .contacts__info {
    padding: 2rem 2rem;
  }

  .modal__dialog {
    padding: 2.25rem 2rem 2.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 80px;
    --section-pad: 3rem;
  }

  .container,
  .container--wide {
    width: min(100% - 1.5rem, 100%);
  }

  .section-title::after {
    width: 120px;
  }

  .section-subtitle {
    margin-bottom: 2rem;
    padding-inline: 0.5rem;
  }

  .header__logo img {
    height: 52px;
  }

  .header__inner {
    padding-inline: 1rem;
  }

  .hero__visual {
    height: min(40vh, 320px);
    padding-top: 1rem;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    margin-bottom: 1.5rem;
  }

  .hero__divider {
    margin-bottom: 1.5rem;
    width: min(100%, 280px);
  }

  .hero__btn {
    width: 100%;
    max-width: 280px;
    min-width: unset;
    padding: 0.9rem 1.5rem;
    font-size: 1.25rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    max-width: none;
    margin-inline: 0;
  }

  .feature-card {
    clip-path: none;
    border-radius: 24px;
    padding: 1.5rem 0.875rem 1.25rem;
  }

  .feature-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }

  .feature-card__icon-placeholder {
    font-size: 1.65rem;
  }

  .feature-card__text {
    font-size: 0.875rem;
  }

  .about__photo-label {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    padding: 1rem 1.25rem;
    border-width: 3px;
  }

  .about__text {
    font-size: 1.0625rem;
    padding-inline: 0.25rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }

  .service-card {
    padding: 1.25rem 0.75rem 1.125rem;
  }

  .service-card__title {
    font-size: 0.9375rem;
  }

  .service-card__price {
    font-size: 0.9375rem;
  }

  .service-card__badge {
    width: 72px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

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

  .contacts__info {
    padding: 1.75rem 1.25rem;
    clip-path: none;
    border-radius: 24px;
  }

  .contacts__item-text {
    font-size: 1.0625rem;
    word-break: break-word;
  }

  .contacts__item-icon {
    width: 48px;
    height: 44px;
    font-size: 1.1rem;
  }

  .modal {
    padding: 1rem;
    align-items: flex-end;
  }

  .modal__dialog {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 24px 24px 0 0;
    clip-path: none;
  }

  .modal__title {
    font-size: 1.5rem;
    padding-right: 2rem;
  }

  .modal__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .question-form__input,
  .question-form__textarea {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .question-form__submit {
    font-size: 1.125rem;
    padding: 1rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__close {
    top: 0.25rem;
    right: 0.25rem;
  }

  .footer {
    padding: 1.25rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-h: 72px;
    --section-pad: 2.5rem;
  }

  .header__logo img {
    height: 44px;
  }

  .hero__content {
    padding-inline: 1rem;
  }

  .hero__visual {
    height: min(36vh, 260px);
  }

  .hero__title {
    font-size: 1.875rem;
    line-height: 1.15;
  }

  .about__photo-block {
    max-width: 100%;
  }

  .about__gallery {
    max-width: min(320px, 100%);
  }

  .mobile-nav a {
    font-size: 1.125rem;
  }

  .mobile-nav .header__cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
}

/* Burger → X when menu open */
.header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

.header__burger span {
  transition: transform var(--transition), opacity var(--transition);
}

/* Tablet landscape: keep 2-column hero feel */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: calc(100vh - var(--header-h));
    padding-bottom: 2rem;
  }

  .hero__visual {
    order: 1;
    flex: 1 1 45%;
    max-width: 50%;
    height: min(70vh, 380px);
    margin: 0;
    padding-top: 0;
  }

  .hero__content {
    order: 2;
    flex: 1 1 45%;
    max-width: 48%;
    text-align: left;
    padding: 1rem 1.5rem;
    margin: 0;
  }

  .hero__divider {
    margin-inline: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
