/* ==========================================================================
   СТРОЙТЕХ ГРУПП — корпоративный лендинг
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #F7F9FC;
  --color-bg-accent: #E8F0EA;
  --color-text: #1A2B2A;
  --color-text-secondary: #5A6B6A;
  --color-primary: #3f8058;
  --color-primary-hover: #033222;
  --color-white: #ffffff;
  --color-border: #D4DDD9;
  --color-shadow: rgba(26, 43, 42, 0.08);
  --color-shadow-hover: rgba(26, 43, 42, 0.14);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1400px;
  --header-height: 100px;
  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

ul {
  list-style: none;
}

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

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 138, 90, 0.25);
}

.btn:active {
  transform: translateY(1px);
  transition-duration: 0.15s;
}

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

/* Пульсация при наведении на Hero-кнопку */
.btn--pulse:hover {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 138, 90, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 138, 90, 0);
  }
}

/* --- Section --- */
.section {
  padding: 100px 0;
}

.section--accent {
  background-color: var(--color-bg-accent);
}

.section--tight-top {
  padding-top: 52px;
}

/* --- About clean --- */
.about-clean {
  padding: 56px 0;
  background: #f4f6f5;
}

.about-clean__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.about-clean__text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin: 0;
}

.about-clean__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-clean__tags li {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary-hover);
  padding: 4px 14px;
  cursor: default;
}

.about-clean__tags li:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-border);
  margin-left: 14px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 960px;
  margin-bottom: 56px;
}

.section__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin-top: -12px;
  margin-bottom: 40px;
}

/* --- Fade-in-up animation (scroll reveal) --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.fade-in-up[data-delay="1"] { transition-delay: 0.05s; }
.fade-in-up[data-delay="2"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="3"] { transition-delay: 0.15s; }
.fade-in-up[data-delay="4"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="5"] { transition-delay: 0.25s; }
.fade-in-up[data-delay="6"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="7"] { transition-delay: 0.35s; }


/* --- Toast notification --- */
.toast {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 20px;
  z-index: 2200;
  max-width: 360px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(26, 43, 42, 0.18);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.toast--error {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 16px var(--color-shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

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

.header__menu {
  display: flex;
  gap: 32px;
}

.header__menu a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.01em;
  position: relative;
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity var(--transition), transform var(--transition);
}

.header__menu a:hover {
  color: var(--color-primary);
}

.header__menu a:hover::after,
.header__menu a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header__menu a.is-active {
  color: var(--color-primary);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

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

.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);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-accent) url('../images/hero-bg.jpg') center top / cover no-repeat;
}

.hero__tint {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  mix-blend-mode: color;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

.hero__overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

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

.hero__content {
  max-width: 900px;
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero__accent {
  display: none;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-hover);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(3, 20, 15, 0.35);
}

.service-card--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 15, 0.1) 0%, rgba(3, 20, 15, 0.92) 100%);
}

.service-card__number,
.service-card__title,
.service-card__text {
  position: relative;
  z-index: 1;
}

.service-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.45;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  background-color: #000;
  /* Соотношение сторон 16:9 через aspect-ratio */
  aspect-ratio: 16 / 9;
}

.video-block__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* На мобиле — скрываем видео, показываем постер */
.video-block__poster {
  display: none;
  width: 100%;
  height: 100%;
  background: url('../images/full/hero-bg.jpg') center center / cover no-repeat;
  position: absolute;
  inset: 0;
}

/* Панель управления */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  z-index: 10;
}

.video-controls__btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 14px;
  transition: background-color var(--transition), transform var(--transition);
}

.video-controls__btn:hover {
  background-color: var(--color-primary);
  transform: scale(1.1);
}

.video-controls__time,
.video-controls__duration {
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  min-width: 32px;
}

.video-controls__duration {
  color: rgba(255, 255, 255, 0.5);
}

/* Прогресс-бар */
.video-controls__progress {
  flex: 1;
  position: relative;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: height var(--transition);
}

.video-controls__progress:hover {
  height: 6px;
}

.video-controls__filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-primary);
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.video-controls__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform var(--transition);
}

.video-controls__progress:hover .video-controls__thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.gallery__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}

.gallery-card:hover .gallery__image-wrap img {
  transform: scale(1.05);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 50, 34, 0.75) 0%, transparent 55%);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery__overlay {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease-out;
  z-index: 2;
}

.gallery-card:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Видео-плитка в галерее --- */
.gallery__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.gallery-card--video:hover .gallery__play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--color-white);
}

.gallery-card--video .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация появления новых фото */
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card--new {
  animation: galleryFadeIn 0.3s ease-out forwards;
}

/* Кнопка «Показать ещё» */
.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(3, 50, 34, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition);
  z-index: 10;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.lightbox__counter {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color var(--transition);
  z-index: 10;
}

.lightbox__nav:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

/* ==========================================================================
   MODAL (Privacy)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 50, 34, 0.6);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 36px 32px 32px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(26, 43, 42, 0.2);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 18px;
  border-radius: 50%;
  transition: background-color var(--transition), color var(--transition);
}

/* --- Video modal variant --- */
.modal--video .modal__dialog {
  max-width: 900px;
  width: 92vw;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}

.modal--video .modal__close {
  top: -44px;
  right: 0;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}

.modal--video .modal__close:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.modal__close:hover {
  background-color: var(--color-bg-accent);
  color: var(--color-text);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-right: 32px;
}

.modal__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.modal__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact__subtitle {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--color-text-secondary);
}

.contact__list i {
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 3px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact__list a {
  color: var(--color-text-secondary);
}

.contact__list a:hover {
  color: var(--color-primary);
}

/* --- Form --- */
.contact__form {
  background-color: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px var(--color-shadow);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.required {
  color: var(--color-primary);
}

/* Honeypot: физически на странице, но невидимо и недоступимо для людей */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 138, 90, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
}

.form-error {
  display: block;
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
  min-height: 18px;
}

#consentError {
  margin-bottom: 16px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.form-privacy-link {
  display: block;
  width: fit-content;
  margin-top: 0;
  margin-bottom: 16px;
  margin-left: 32px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-privacy-link:hover {
  color: var(--color-primary);
}

.form-message {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.form-message.is-success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message.is-error {
  display: block;
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}

.footer__logo img {
  height: 65px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.footer__contacts a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer__contacts a:hover {
  color: var(--color-white);
}

.footer__phone {
  font-size: 15px;
  font-weight: 500;
  align-self: flex-start;
}

.footer__emails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.footer__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  user-select: none;
}

.footer__copy {
  margin-left: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE — Tablet wide (≤1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet / small desktop (≤1100px)
   Главное: шапка с 6 пунктами + контакты не помещается — переходим на бургер
   ========================================================================== */
@media (max-width: 1100px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-bg);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .header__menu a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile (<768px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 64px 0;
  }

  .about-clean__text {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  /* Header mobile — уточнения поверх брейкпоинта 1100px */
  .header__logo img {
    height: 50px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 64px;
  }

  .hero__overlay {
    display: block;
  }

  .hero__accent {
    width: 280px;
    height: 280px;
    right: -60px;
    top: -40px;
  }

  /* Services */
  .services {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__form {
    padding: 24px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer__logo img {
    height: 50px;
  }

  .footer__emails {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer__sep {
    display: none;
  }

  .footer__copy {
    margin-left: 0;
  }

  .form-privacy-link {
    margin-left: 32px;
  }

  .checkbox-group {
    align-items: flex-start;
  }

  .checkbox-group input[type="checkbox"] {
    margin-top: 2px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }

  .modal__dialog {
    padding: 28px 20px 24px;
  }

  /* Lightbox */
  .lightbox__close {
    top: 16px;
    right: 16px;
  }

  .toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ==========================================================================
   RESPONSIVE — Small phones (≤480px)
   iPhone SE, старые Android и прочие узкие экраны
   ========================================================================== */
@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .section__title {
    font-size: 26px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .contact__form {
    padding: 20px 16px;
  }

  .lightbox__caption {
    font-size: 14px;
  }

  .lightbox__content {
    max-width: 95vw;
  }
}

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

  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }


  .toast {
    transition: none;
  }

  .service-card,
  .gallery__image-wrap img,
  .gallery__caption,
  .gallery__overlay,
  .btn {
    transition: none;
  }
}