:root{
  --navy:#1a2744;
  --navy-light:#2d3a5a;
  --green:#16a75c;
  --green-light:#1fb868;
  --gray:#6b7280;
  --gray-light:#9ca3af;
  --bg:#f8f9fa;
  --white:#ffffff;
  --black:#000000;
  --border:#e5e7eb;
  --shadow:0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:0 4px 20px rgba(0,0,0,0.12);
  --radius:12px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;color:var(--navy);line-height:1.6;background:#fffef9}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ============ ШАПКА (FIXED) ============ */
.site-header{
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #fffef9;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:80px;gap:16px}
.logo img{height:70px;width:auto}

.nav{display:flex;gap:32px}
.nav a{font-weight:500;font-size:15px;color:var(--navy);transition:color .2s;position:relative}
.nav a:hover{color:var(--green)}
.nav a.active{color:var(--green)}
.nav a.active::after{content:"";position:absolute;bottom:-28px;left:0;right:0;height:2px;background:var(--green)}

/* ============ КНОПКА QUOTE С ВИБРАЦИЕЙ ============ */
.btn-quote{
  background: var(--green);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Постоянная мягкая пульсация */
  animation: quotePulse 2.5s ease-in-out infinite;
}

@keyframes quotePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 167, 92, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(22, 167, 92, 0); }
}

.btn-quote:hover{
  background: var(--navy);
  /* Тряска при наведении */
  animation: quoteShake 0.5s ease-in-out;
}

@keyframes quoteShake {
  0%, 100% { transform: translateX(0) translateY(-2px); }
  15% { transform: translateX(-4px) translateY(-2px) rotate(-2deg); }
  30% { transform: translateX(4px) translateY(-2px) rotate(2deg); }
  45% { transform: translateX(-4px) translateY(-2px) rotate(-1deg); }
  60% { transform: translateX(4px) translateY(-2px) rotate(1deg); }
  75% { transform: translateX(-2px) translateY(-2px); }
}

.burger{display:none;background:none;border:0;cursor:pointer;padding:8px}
.burger span{display:block;width:24px;height:2px;background:var(--navy);margin:5px 0;transition:.3s}
.swiper-pagination-bullet-active{background:var(--green)}
/* ============ ПАРАЛЛАКС ФОН HERO ============ */
.hero {
  position: relative;
  min-height: 600px;
  display: block;
  padding-top: 250px; 
  padding-bottom: 180px;
  overflow: hidden;
  background-color: #f0f4f8;
}

.hero-bg {
  position: absolute;
  top: 81px;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: transform;
}

.hero .container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-content {
  max-width: 560px;
  width: 100%;
  text-align: left;
  margin: 0;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
}

.hero-content .lead {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0; /* Добавлено для корректной работы анимации */
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.hero-tags {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--gray);
  flex-wrap: wrap;
}

.hero-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tags span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

@media(max-width:968px) {
  .header-inner { height: 60px; }
  .logo img { height: 50px; }
  
 .btn-quote {
    display: inline-flex !important;
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero { min-height: 500px; padding-top: 200px; padding-bottom: 0; }
  .hero-bg { background-position: right 25% top; top: 60px;}
  .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0; 
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 100%  );
}
  .hero-content .lead{
    margin-bottom: 0;
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
  max-width: 180px;
}
  .hero-content h1 { font-size: 40px; }
  .btn-hide { display:none; }
}

@media(max-width:640px) {
  .hero { min-height: auto; padding: 150px 0 40px; }
  .hero-content h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .hero-tags { 
    /* gap: 2px 12px; font-size: 13px; color: var(--black);  */
  display: none;
  }
  .hero-buttons {margin-bottom: 20px;}
  .hero-content{ max-width: 220px;}
}
.section{padding:60px 0}
.section-head{margin-bottom:48px}
.section-head .overline{font-size:13px;font-weight:700;color:var(--green);text-transform:uppercase;letter-spacing:0.1em;margin-bottom:12px;display:inline-block}
.section-head .overline::before{content:"";display:inline-block;width:30px;height:2px;background:var(--green);vertical-align:middle;margin-right:10px}
.section-head h2{font-family: Georgia, serif;font-size:48px;font-weight:800;margin-bottom:16px;line-height:1.1}
.section-head .subtitle{font-size:20px;color:var(--gray);max-width:600px}
.section-head-row{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px}

/* ============ КАРТОЧКИ УСЛУГ ============ */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card-new {
  position: relative;
  min-height: 224px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.service-card-new:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 36px;
  max-width: 75%;
}

.service-card-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
  font-family: Georgia, serif;
}

.service-list-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list-new p {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.5;
  position: relative;
  font-weight: 500;
}

@media(max-width: 968px) {
  .services-grid-new { grid-template-columns: repeat(2, 1fr) }
  .service-card-new { min-height: 200px; }
  .service-card-content { max-width: 75%; padding: 28px; }
  .service-card-content h3 { font-size: 22px; }
}

@media(max-width: 640px) {
  .services-grid-new { grid-template-columns: 1fr; }
  .section { padding:30px 0; }
  .service-card-content { padding: 24px; max-width: 80%; }
  .service-card-content h3 { font-size: 20px; }
  .section-head .subtitle {font-size: 15px;}
.section-head {margin-bottom: 0 }
.values-section {    margin-top: 20px;}
}
.pb-0 {
  padding-bottom: 0;
}
.pb-3 {
  padding-bottom:  1rem;
}
/* ============ ПОРТФОЛИО СЛАЙДЕР ============ */
#works .container {
  overflow: visible;
  position: relative;
}

.projects-swiper {
  overflow: hidden;
  padding-bottom: 60px;
}

.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-arrow::after {
  font-size: 24px;
  font-weight: bold;
  color: var(--navy);
}

.swiper-button-prev.projects-arrow { left: -60px; }
.swiper-button-next.projects-arrow { right: -60px; }

@media (max-width: 1300px) {
  .swiper-button-prev.projects-arrow { left: -20px; }
  .swiper-button-next.projects-arrow { right: -20px; }
}

@media (max-width: 768px) {
  .projects-arrow { display: none; }
}

/* ============ ЛАЙТБОКС ПОРТФОЛИО ============ */
.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.lightbox-image.loading { opacity: 0.3; }

.lightbox-caption {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 15px; }
  .lightbox-next { right: 15px; }
  .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; }
  .lightbox-caption { font-size: 16px; padding: 0 20px; }
}

.project-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.project-image:hover { opacity: 0.95; }

h3.project-title { margin-top: 24px; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ============ БЕЙДЖИ BEFORE / AFTER ============ */
.project-image::before,
.project-image::after {
  content: "";
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.project-image::before {
  content: "Before";
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 1px solid var(--border);
}

.project-image::after {
  content: "After";
  right: 16px;
  background: var(--green);
  color: var(--white);
}

@media (max-width: 640px) {
  .project-image::before,
  .project-image::after {
    top: 12px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .project-image::before { left: 12px; }
  .project-image::after { right: 12px; }
}

.view-all { margin-bottom: 20px; }

/* ============ ЗАГОЛОВОК СЕКЦИИ ОТЗЫВОВ ============ */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.reviews-title {
  flex: 1;
  min-width: 300px;
}

.reviews-title .overline {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
}

.reviews-title .overline::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 10px;
}

.reviews-title h2 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 24px 0;
  line-height: 1.1;
  font-family: Georgia, serif;
  color: var(--navy);
}

/* Рейтинг под заголовком */
.reviews-rating-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  font-family: Georgia, serif;
}

.rating-stars {
  display: flex;
  gap: 2px;
  font-size: 32px;
  line-height: 1;
}

.rating-stars .star {
  color: #e5e7eb;
}

.rating-stars .star.filled {
  color: #fbbf24;
}

.rating-stars .star.half {
  background: linear-gradient(90deg, #fbbf24 70%, #e5e7eb 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-count {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
  font-weight: 500;
}

.btn-review {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 99px;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  margin-top: 8px;
}

.btn-review:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Ссылка справа */
.reviews-link-wrap {
  flex-shrink: 0;
  padding-top: 10px;
}

.reviews-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
	    text-align: right;
    display: grid;
    padding-right: 20px;
  transition: color 0.2s;
}

.reviews-link:hover {
  color: var(--green);
}

/* ============ КАРУСЕЛЬ ОТЗЫВОВ ============ */
#reviews .container {
  overflow: visible;
  position: relative;
}

.reviews-slider-wrapper {
  position: relative;
}

.reviews-swiper {
  overflow: hidden;
  padding-bottom: 30px;
}

.reviews-swiper .swiper-slide {
  height: auto;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Автор отзыва */
.rev-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray);
}

.rev-author .name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.rev-author .service {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.stars {
  color: #fbbf24;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card blockquote {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
}

.review-card .name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-top: auto;
}

.review-card .service {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 4px;
}

/* ============ КОНТРОЛЫ СЛАЙДЕРА (ПАГИНАЦИЯ + СТРЕЛКИ) ============ */
.reviews-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Пагинация (точки) */
.reviews-swiper .swiper-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.reviews-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border);
  opacity: 1;
  margin: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: var(--green);
  width: 28px;
  border-radius: 6px;
}

/* Стрелки по центру */
.reviews-arrows {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.reviews-arrow {
  width: 44px;
  height: 44px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reviews-arrow:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.reviews-arrow svg {
  width: 18px;
  height: 18px;
}

/* ============ АДАПТИВ ============ */
@media(max-width: 640px) {
  .reviews-arrow {
    width: 40px;
    height: 40px;
  }
  .reviews-arrow svg {
    width: 16px;
    height: 16px;
  }
  .reviews-controls {
    margin-top: 24px;
    gap: 16px;
  }
}

/* ============ АДАПТИВ ============ */
@media(max-width: 1300px) {
  .reviews-arrow.swiper-button-prev { left: 0; }
  .reviews-arrow.swiper-button-next { right: 0; }
}

@media(max-width: 968px) {
  .reviews-header {
    flex-direction: column;
    gap: 24px;
  }
  .reviews-link-wrap {
    padding-top: 0;
  }
  .reviews-slider-wrapper {
    padding: 0;
  }
  .reviews-arrow {
    display: none;
  }
}

@media(max-width: 640px) {
  .reviews-title h2 {
    font-size: 32px;
  }
  .rating-number {
    font-size: 36px;
  }
  .rating-stars {
    font-size: 24px;
  }
  .btn-review {
    padding: 12px 24px;
    font-size: 15px;
  }
  .review-card {
    padding: 20px;
  }
  .review-card blockquote {
    font-size: 14px;
  }
}

/* ============ ABOUT ============ */
.about-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:80px; align-items:start; }
.about-photo { position:relative; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg); }
.about-photo img { width:100%; height:auto; display:block; }
.about-content h3 { font-size:40px; font-weight:800; margin-bottom:8px; font-family:Georgia,serif; }
.about-content .title { font-size:18px; color:var(--gray); margin-bottom:24px; }
.about-content p { font-size:16px; color:var(--navy); line-height:1.8; margin-bottom:20px; }

.values-section { margin-top:48px; }
.values-section .section-label { font-size:13px; font-weight:700; color:var(--green); text-transform:uppercase; letter-spacing:0.15em; text-align:center; margin-bottom:32px; position:relative; display:flex; align-items:center; justify-content:center; gap:16px; }
.values-section .section-label::before, .values-section .section-label::after { content:""; width:60px; height:1px; background:var(--green); }
.values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; text-align:center; }
.value-item { display:flex; flex-direction:column; align-items:center; }
.value-icon { width:56px; height:56px; background:var(--green); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--white); }
.value-icon svg { width:28px; height:28px; }
.value-item span { font-weight:600; font-size:15px; }

.service-area-note { margin-top:20px; padding-top:24px; border-top:1px solid var(--border); text-align:center; color:var(--gray); font-size:14px; display:flex; align-items:start; justify-content:center; gap:6px; }

/* ============ CONTACTS ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 { font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 28px; font-family: Georgia, serif; }
.contact-info p.subtitle { margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 36px; height: 36px; margin-top: 4px; flex-shrink: 0; }
.contact-item h4 { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 16px; color: var(--navy); font-weight: 500; }
.contact-item a:hover { color: var(--green); }

.contact-form-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.contact-form-wrapper h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.form-sub { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--navy); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 167, 92, 0.1);
}
.field .err { color: #ef4444; font-size: 12px; font-weight: 600; }
.alert { padding: 14px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-note { font-size: 12px; color: var(--gray-light); margin-top: 16px; text-align: center; }

.social-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.social-section h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.social-links { display: flex; gap: 24px; flex-wrap: wrap; }
.social-link { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.social-link svg { width: 22px; height: 22px; }
.social-link:hover { color: var(--green); }

@media(max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info h2 { font-size: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }
}
@media(max-width: 360px) {
  .contact-section .container { padding: 0 10px;}
	.contact-form-wrapper {
        padding: 20px;
        max-width: 90vw;
    }
}
/* ============ FOOTER ============ */
.footer { background:var(--navy); color:var(--white); padding:60px 0 30px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 2fr 2fr; gap:40px; margin-bottom:40px; }
.footer-logo img { height:100px; margin-bottom:16px; }
.footer p { font-size:14px; color:rgba(255,255,255,0.7); line-height:1.7; }
.footer h4 { font-size:14px; font-weight:700; margin-bottom:16px; color:var(--white); }
.footer ul { list-style:none; }
.footer li { font-size:14px; margin-bottom:5px;vertical-align: middle; }
.footer a { font-size:14px; color:rgba(255,255,255,0.7); transition:color .2s; vertical-align: middle;}
.footer a:hover { color:var(--white); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:24px; display:flex; justify-content:space-between; font-size:13px; color:rgba(255,255,255,0.5); flex-wrap:wrap; gap:10px; }
.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}
.mobile-cta { display:none; position:fixed; bottom:0; left:0; right:0; background:var(--white); border-top:1px solid var(--border); padding:16px 24px; z-index:90; gap:12px; }
.mobile-cta .btn { flex:1; justify-content:center; }
.btn-navy { background:var(--navy); color:var(--white); }

@media(max-width:968px) {
  .nav { display:none; }
  .burger { display:block; }
  .services-grid, .reviews-grid { grid-template-columns:1fr; }
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .mobile-cta { display:flex; }
}

@media(max-width:640px) {
  .footer-grid { grid-template-columns:1fr; }
  .section-head h2 { font-size:32px; }
  .about-content h3 { font-size:28px; }
  body { padding-bottom:80px; }
}

/* ============ МОБИЛЬНОЕ МЕНЮ ============ */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 968px) {
  .nav {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
  }
  .nav a { padding: 18px 0; width: 100%; text-align: center; font-size: 17px; border-bottom: 1px solid var(--bg); }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { display: none; }
  .nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ============ THUMBTACK WIDGET ============ */
.thumbtack-widget-wrapper {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.thumbtack-label {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#tt-review-widget-star {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

#tt-review-widget-star:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--green);
}

#tt-review-widget-star .tt-logo {
  height: 22px;
  width: auto;
  margin-bottom: 4px;
}

#tt-review-widget-star .tt-company-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  transition: color 0.2s;
}

#tt-review-widget-star:hover .tt-company-name {
  color: var(--green);
}

#tt-dynamic {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 4px;
}

#tt-dynamic img {
  width: 16px;
  height: 16px;
}

/* ============ АНИМАЦИИ ПРИ СКРОЛЛЕ ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left { transform: translateX(-30px); }
.reveal-left.visible { transform: translateX(0); }

.reveal-right { transform: translateX(30px); }
.reveal-right.visible { transform: translateX(0); }

.reveal-scale { transform: scale(0.96); }
.reveal-scale.visible { transform: scale(1); }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }
.stagger-9 { transition-delay: 0.45s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-buttons { animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.hero-tags { animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }

.projects-arrow,
.reviews-arrow {
  opacity: 0;
  animation: heroFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    top: 0;
    height: 100%;
    transform: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-content, .hero-content .lead, .hero-buttons, .hero-tags,
  .projects-arrow, .reviews-arrow, .btn-quote {
    animation: none;
    opacity: 1;
  }
}
/* ============ КНОПКА "НАВЕРХ" ============ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 100px; /* Выше мобильной CTA-панели */
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95;
  box-shadow: 0 4px 16px rgba(22, 167, 92, 0.35);
  
  /* Скрыта по умолчанию */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  background: var(--navy);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.4);
}

.to-top:active {
  transform: translateY(-2px) scale(0.98);
}

@media (min-width: 969px) {
  .to-top {
    bottom: 32px;
  }
}

@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 90px;
    width: 42px;
    height: 42px;
  }
  .to-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}