/* ============================================================
   HandyKraken — редизайн 2026
   Палитра: тёмно-синий + фирменный оранжевый на светлом фоне
   Заголовки: Barlow Condensed / Текст: Public Sans
   ============================================================ */

:root {
  /* Цвета */
  --navy-900: #071322;   /* самый тёмный — низ футера */
  --navy-800: #0C2038;   /* футер, заголовки */
  --navy-700: #143354;   /* ховеры, вторичные элементы */
  --orange-500: #FF9B00; /* фирменный оранжевый */
  --orange-600: #E68500; /* ховер кнопок */
  --ink-900: #22303F;    /* основной текст */
  --ink-600: #51606F;    /* вторичный текст */
  --bg-page: #F6F8FB;    /* светлый холодный фон */
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --ring: rgba(255, 155, 0, 0.35);

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(20, 48, 79, 0.07), 0 1px 2px rgba(20, 48, 79, 0.05);
  --shadow-md: 0 6px 20px rgba(20, 48, 79, 0.09);
  --shadow-lg: 0 16px 40px rgba(20, 48, 79, 0.14);

  /* Радиусы */
  --radius: 14px;
  --radius-sm: 10px;

  /* Шрифты */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", Arial, sans-serif;

  /* Фирменная косая полоска (навы/оранжевый) */
  --stripe: repeating-linear-gradient(
    -55deg,
    var(--orange-500) 0 14px,
    var(--navy-800) 14px 28px
  );
}

/* ---------- База ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  margin: 0 0 12px;
}

h2 {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Оранжевый штрих под заголовками секций */
section > h2::after,
.container > h2::after,
.services-container > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange-500);
  margin: 14px auto 0;
}

ul {
  padding-left: 20px;
}

img {
  max-width: 100%;
}

#estimate-form {
  scroll-margin-top: 140px;
}

/* Видимый фокус с клавиатуры */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Кнопки ---------- */

.cta-button {
  display: inline-block;
  background-color: var(--orange-500);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 155, 0, 0.35);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
  background-color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 155, 0, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

/* Компактная версия для шапки */
.cta-button--small,
.header .cta-button {
  padding: 10px 20px;
  font-size: 0.95rem;
  box-shadow: none;
}

.accent-wall-button {
  display: inline-block;
  background-color: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.accent-wall-button:hover {
  background-color: var(--navy-800);
  color: #fff;
}

/* ---------- Шапка ---------- */

.header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 5px solid transparent;
  border-image: var(--stripe) 1; /* фирменная косая полоска сверху */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.header-contacts-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon2 {
  color: var(--orange-500);
  font-size: 15px;
  width: 16px;
  text-align: center;
}

.contact-text2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Hero ---------- */

.hero-section {
  background:
    linear-gradient(100deg, rgba(5, 13, 23, 0.96) 0%, rgba(7, 19, 34, 0.9) 45%, rgba(12, 32, 56, 0.6) 100%),
    url('../img/bgbig.png') center/cover no-repeat;
  color: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 0;
  display: flex;
  align-items: stretch; /* колонки на всю высоту секции */
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 2;
  text-align: left;
  padding: 0 0 60px;
  align-self: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.08;
  color: #fff;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  max-width: 620px;
}

/* Чек-лист преимуществ — лёгкие «плашки» */
.services-grid1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-bottom: 32px;
  max-width: 640px;
}

.service-item1 {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.service-item1 i {
  color: var(--orange-500);
  margin-right: 12px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-info1 {
  margin-bottom: 32px;
}

.contact-info1 p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
  display: flex;
  align-items: center;
}

.contact-info1 i {
  margin-right: 12px;
  color: var(--orange-500);
  width: 20px;
  text-align: center;
}

.hero-image {
  flex: 1.4;
  min-width: 0;
  position: relative; /* якорь для картинки на всю высоту */
}

.hero-image img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;       /* во всю высоту hero-блока */
  max-height: none;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

/* ---------- Текстовые секции (Why Clients Choose / SEO-текст) ---------- */

.professional-services-section {
  padding: 80px 20px;
  background-color: var(--bg-page);
}

.professional-services-section--tinted {
  background-color: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.professional-services-section h2 {
  margin-bottom: 28px;
}

.services-content {
  max-width: 780px;
  margin: 0 auto;
}

.services-content p {
  text-align: left;
  color: var(--ink-600);
  line-height: 1.75;
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.services-content p:last-child {
  margin-bottom: 0;
}

/* Две колонки: текст + карточка Popular Requests */
.services-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.services-split .services-content {
  max-width: none;
  margin: 0;
}

.services-highlights {
  background: var(--navy-800);
  background-image: radial-gradient(circle at 85% 10%, rgba(255, 155, 0, 0.12), transparent 50%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
}

.services-highlights h3 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  padding-bottom: 12px;
  position: relative;
}

.services-highlights h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-500);
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.highlights-list li:last-child {
  border-bottom: none;
}

.highlights-list i {
  color: var(--orange-500);
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.services-highlights .cta-button {
  width: 100%;
  text-align: center;
}

/* ---------- Услуги ---------- */

.services-section {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-section h2 {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 155, 0, 0.4);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(145deg, #FFB03B, var(--orange-500));
  color: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255, 155, 0, 0.3);
  transition: transform 0.3s ease;
}

.service-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.service-item:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-item h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-item p {
  color: var(--ink-600);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* ---------- Why Choose ---------- */

.why-choose-section {
  padding: 80px 20px 20px;
}

.features-section {
  padding: 48px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-item {
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  margin-bottom: 18px;
  width: 84px;
  height: 84px;
  background: var(--navy-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255, 155, 0, 0.9), 0 8px 18px rgba(20, 48, 79, 0.2);
}

.feature-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* ---------- Как это работает ---------- */

.how-it-works-section {
  background-color: var(--navy-800);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 155, 0, 0.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
  padding: 90px 0;
}

.how-it-works-section h2 {
  color: #fff;
}

.how-it-works-section .container > h2::after {
  background: var(--orange-500);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px auto 0;
}

.step-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-bottom: 4px solid var(--orange-500);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.step-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 22px 22px 8px;
}

.step-description {
  color: var(--ink-600);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0 22px 26px;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Галерея работ ---------- */

.our-work-section {
  position: relative;
  background-color: var(--bg-page);
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
}

.our-work-section h2 {
  margin-bottom: 44px;
}

.gallery-container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  /* Мягкое затухание по краям ленты */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Лента едет сама; слайды в разметке продублированы,
   поэтому сдвиг на -50% даёт бесшовный цикл */
.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 45s linear infinite;
  will-change: transform;
}

@keyframes gallery-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Пауза при наведении на галерею */
.gallery-container:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-slide {
  flex: 0 0 auto;
  width: 380px;
  padding: 14px 10px;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Картинка под курсором увеличивается */
.gallery-slide:hover img {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 5;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .gallery-slide { width: 320px; }
}
@media (max-width: 767px) {
  .gallery-slide { width: 240px; }
  .gallery-track { animation-duration: 30s; }
}

/* ---------- Отзывы ---------- */

.testimonials-section {
  padding: 80px 20px;
  background-color: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 44px;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-item {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: var(--orange-500);
  font-size: 1.35rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.testimonial-text {
  text-align: left;
  color: var(--ink-600);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 20px;
  flex-grow: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy-800);
  text-align: right;
}

/* ---------- Форма заявки ---------- */

.estimate-section {
  padding: 90px 20px;
  background-color: var(--bg-page);
}

.estimate-section h2 {
  margin-bottom: 48px;
}

.estimate-wrapper {
  display: flex;
  gap: 32px;
}

.contact-info {
  flex: 1;
  background: var(--navy-800);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item:last-of-type {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--orange-500);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-right: 18px;
  flex-shrink: 0;
}

.contact-text h4 {
  text-align: left;
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #fff;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}

.estimate-form {
  flex: 2;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.form-row {
  margin-bottom: 18px;
}

.form-row:last-of-type {
  margin-bottom: 28px;
}

.estimate-form input,
.estimate-form textarea {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.estimate-form input::placeholder,
.estimate-form textarea::placeholder {
  color: #8B98A5;
}

.estimate-form input:focus,
.estimate-form textarea:focus {
  border-color: var(--orange-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.estimate-form .cta-button {
  width: 100%;
}

/* Соцсети в блоке контактов */
.contact-info .social-links {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover {
  background-color: var(--orange-500);
  border-color: var(--orange-500);
  transform: translateY(-3px);
}

/* Pop-up после отправки формы */
#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 35, 58, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#popup-content {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
}

#popup-close {
  margin-top: 22px;
  padding: 12px 32px;
  background: var(--orange-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#popup-close:hover {
  background: var(--orange-600);
}

/* ---------- Футер ---------- */

.site-footer {
  background-color: var(--navy-800);
  color: #fff;
  padding: 64px 0 0;
  font-size: 15px;
  border-top: 5px solid transparent;
  border-image: var(--stripe) 1; /* та же фирменная полоска, что и в шапке */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  margin-bottom: 44px;
}

.footer-logo {
  font-size: 32px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-description {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  text-align: left;
  font-size: 20px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-500);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
}

.footer-list i {
  color: var(--orange-500);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-list a:hover {
  color: var(--orange-500);
}

.site-footer .social-links {
  display: flex;
  gap: 14px;
}

.site-footer .social-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.site-footer .social-links a:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  transform: translateY(-3px);
}

.footer-bottom {
  background: var(--navy-900);
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Появление при скролле (класс вешает JS) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Уважение к настройкам анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gallery-track {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Адаптивность
   ============================================================ */

@media (max-width: 992px) {
  h2 {
    font-size: 2.2rem;
  }

  .header-contacts {
    gap: 18px;
  }

  /* Hero — в колонку */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  .hero-content {
    padding-bottom: 20px;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid1 {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .contact-info1 p {
    justify-content: center;
  }

  .hero-image {
    align-self: center;
    position: static;
    width: 100%;
  }

  .hero-image img {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 480px;
    margin: 0 auto;
  }

  /* Сетки */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-list {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  /* Секция Houston — в одну колонку */
  .services-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-highlights {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  /* Форма */
  .estimate-wrapper {
    flex-direction: column;
  }

  .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .contact-item {
    flex: 1 1 220px;
    margin-bottom: 0;
  }

  .contact-info .social-links {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  /* Футер */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
    margin: 0 auto 36px;
  }

  .footer-description {
    margin: 0 auto;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-list {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-list li {
    justify-content: center;
  }

  .site-footer .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h2 {
    font-size: 1.9rem;
  }

  /* Шапка */
  .header-container {
    padding: 0 15px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .logo-img {
    height: 32px;
  }

  .header-contacts-wrapper {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .header-contacts {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .contact-text2 {
    font-size: 13px;
  }

  .header-buttons {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    padding-top: 44px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .services-grid1 {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    max-height: 380px;
  }

  /* Секции */
  .professional-services-section,
  .services-section,
  .our-work-section,
  .testimonials-section,
  .estimate-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .why-choose-section {
    padding-top: 60px;
  }

  .how-it-works-section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item {
    padding: 28px 22px;
  }

  .features-grid {
    gap: 18px;
  }

  .feature-icon {
    width: 72px;
    height: 72px;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    padding: 26px 22px;
  }

  .services-content p {
    font-size: 1rem;
  }

  /* Форма */
  .contact-info,
  .estimate-form {
    padding: 28px 22px;
  }

  .contact-item {
    flex: 1 1 100%;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-right: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .cta-button--small {
    width: auto;
  }
}