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

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --accent: #FF6F00;
  --accent-light: #FFA040;
  --dark: #1a1a2e;
  --dark-2: #2d2d44;
  --gray-900: #212121;
  --gray-700: #616161;
  --gray-500: #9e9e9e;
  --gray-300: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#prices {
  padding: 80px 0;
  background: var(--gray-100, #f5f5f5);
}

#prices .section-header {
  text-align: center;
  margin-bottom: 48px;
}

#prices .section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gray-900, #212121);
  margin-bottom: 12px;
}

#prices .section-header p {
  color: var(--gray-700, #616161);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.price-category {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.15);
}

.price-category-header {
  background: var(--primary, #1565C0);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-category-header .cat-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.price-category-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.price-category-header.accent-header {
  background: var(--accent, #FF6F00);
}

.price-rows {
  padding: 8px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
  gap: 12px;
  transition: background 0.2s;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: #f0f6ff;
}

.price-label {
  font-size: 0.9rem;
  color: var(--gray-900, #212121);
  line-height: 1.4;
  flex: 1;
}

.price-label .price-note {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500, #9e9e9e);
  margin-top: 2px;
}

.price-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary, #1565C0);
  white-space: nowrap;
  text-align: right;
}

.price-value.free {
  color: #2e7d32;
}

.price-value.surcharge {
  color: var(--accent, #FF6F00);
}

/* Базовые услуги — полная ширина */
.price-category.full-width {
  grid-column: 1 / -1;
}

.price-category.full-width .price-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.price-category.full-width .price-row {
  border-bottom: none;
  border-right: 1px solid var(--gray-100, #f5f5f5);
}

/* Комплексные работы — акцент */
.price-category.highlight-card .price-value {
  color: var(--accent, #FF6F00);
  font-size: 1rem;
}

.price-category.highlight-card .price-category-header {
  background: linear-gradient(135deg, var(--primary, #1565C0), var(--primary-dark, #0D47A1));
}

/* Дисклеймер */
.prices-disclaimer {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-700, #616161);
  font-size: 0.82rem;
  line-height: 1.5;
}

.prices-disclaimer svg {
  flex-shrink: 0;
  color: var(--primary, #1565C0);
  margin-top: 1px;
}

/* CTA под ценами */
.prices-cta {
  text-align: center;
  margin-top: 40px;
}

.prices-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #FF6F00);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.prices-cta .btn:hover {
  background: var(--accent-light, #FFA040);
  transform: translateY(-2px);
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60px;

  background: rgba(0, 0, 0, 0.25);
  /* мягкая подложка */
  backdrop-filter: blur(8px);

  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
  color: #fff;
  font-size: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* НЕ чёрный */
}

.hero-bottom-bar-text {
  white-space: nowrap;
  margin-right: 65px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  display: flex;
}

.hero-bottom-bar-text img {
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  /* уменьшаешь как нужно */
  height: 25px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #05860c;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 255, 0, 0.4);
}

.btn-outline {
  background: rgb(131, 3, 3);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgb(94, 1, 1);
  color: #ffffff;
  border-color: var(--white);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  background-color: #00000059;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-left: 65px;
  transition: var(--transition);
}

.log {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}

#navbar.scrolled .logo {
  color: var(--gray-900);
}

.logo-icon {
  color: var(--primary-light);
}

#navbar.scrolled .logo-icon {
  color: var(--primary);
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
}

#navbar.scrolled .nav-links a {
  color: var(--gray-700);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .nav-links a:hover {
  color: var(--primary);
  background: rgba(21, 101, 192, 0.08);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .nav-toggle span {
  background: var(--gray-900);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: left;
  justify-content: left;
  overflow: hidden;
}

.backgr1 {
  background: url(./image/1.1.png) center/cover no-repeat;
}

.backgr2 {
  background: url(./image/1.2.png) center/cover no-repeat;
}

.backgr3 {
  background: url(./image/1.3.png) center/cover no-repeat;
}

.backgr4 {
  background: url(./image/1.4.png) center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;

}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 111, 0, 0.9);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease;
}

#hero h1 {
  font-size: 4rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  margin-left: 40px;
  animation: fadeInUp 0.8s ease 0.1s both;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn img {
  width: 25px !important;
  height: 25px !important;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 5px;
  margin-left: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.hero-subtitle img {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  /* уменьшаешь как нужно */
  height: 20px;
  margin-right: 6px;
  /* отступ от текста */
}

.hero-buttons {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  margin-left: 40px;
  margin-top: 25px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ===== SERVICES ===== */
#services {
  padding: 50px 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.swiper {
  width: 100%;
  height: 300px;
  /* такая же как у фото */
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide img {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  /* отключаем ограничение только здесь */
}

.swiper-slide {
  width: auto !important;
  /* важно */
  display: flex;
}

.swiper-slide img {
  height: 300px;
  /* можешь менять */
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
  display: block;
  /* убирает лишние отступы */
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, 0.15);
}

.card-img-top {
  border-radius: 10px;
}

.service-icon {
  width: 75px;
  height: 72px;
  border-radius: var(--radius-md);
  background: rgba(21, 101, 192, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ===== ABOUT ===== */
#about {
  padding: 100px 0;
}

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

.about-images {
  position: relative;
}

.about-img-main img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-img-secondary img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 0.8rem;
  opacity: 0.9;
  line-height: 1.3;
}

.about-content .section-tag {
  margin-bottom: 12px;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.about-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ===== PORTFOLIO ===== */
#portfolio {
  padding: 100px 0;
  background: var(--gray-100);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 71, 161, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== TESTIMONIALS ===== */
#testimonials {
  padding: 100px 0;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 48px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 1.15rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--gray-900);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ===== CTA ===== */
#cta {
  padding: 40px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 500px;
}

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

.cta-box .btn-primary:hover {
  background: var(--gray-100);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== CONTACT ===== */
#contact {
  padding: 0px 0px 100px 0px;
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: #2e7d32;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.form-success svg {
  margin: 0 auto 16px;
  color: #2e7d32;
}

.form-success p {
  font-size: 1.05rem;
  font-weight: 500;
}

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

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark);
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links li:not(:has(a)) {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

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

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero {
    min-height: 0;
    background-repeat: no-repeat;
    background-size: cover;
    /* заполнить блок */
  }

  .backgr1 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.1.png);
    background-position: 78% center;
  }

  .backgr2 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.2.png);
    background-position: 78% center;
  }

  .backgr3 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.3.png);
    background-position: 78% center;
  }

  .backgr4 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.4.png);
    background-position: 78% center;
  }

  #logogo {
    display: none !important;
  }

  .nav-links a {
    padding: 7px 6px;
    border-radius: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
  }

  .nav-links {
    gap: 20px;
  }

  .about-grid {
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-bottom-bar {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links li a {
    font-size: 18px !important;
    color: #000000 !important;
  }

  ul.nav-links li a.nav-cta {
    color: #ffffff !important;
  }


  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 50px 30px 30px;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    padding: 12px 16px;
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-links a:hover {
    background: rgba(21, 101, 192, 0.08) !important;
    color: var(--primary) !important;
  }

  #hero h1 {
    font-size: 2.6rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-main img {
    height: 350px;
  }

  .about-img-secondary {
    right: 10px;
    bottom: -20px;
    width: 150px;
  }

  .about-experience-badge {
    right: auto;
    left: 20px;
    top: 20px;
  }

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

  .testimonial-card {
    padding: 32px 24px;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  #hero {
    min-height: 0;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .backgr1 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.1.png);
    background-position: 78% center;
  }

  .backgr2 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.2.png);
    background-position: 78% center;
  }

  .backgr3 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.3.png);
    background-position: 78% center;
  }

  .backgr4 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.4.png);
    background-position: 78% center;
  }
}

@media (max-width: 600px) {
  .price-category.full-width .price-rows {
    grid-template-columns: 1fr;
  }

  .price-category.full-width .price-row {
    border-right: none;
    border-bottom: 1px solid var(--gray-100, #f5f5f5);
  }

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

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 9px 19px;
  }

  .hero-buttons {
    flex-wrap: nowrap;
    margin-left: 0;
    justify-content: center;
    flex-direction: row-reverse;
  }

  .hero-content {
    padding: 150px 0px 0px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    padding: 24px;
  }

  .cta-box {
    padding: 32px 20px;
  }

  #hero {
    min-height: 0;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .backgr1 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.1.png);
    background-position: 78% center;
  }

  .backgr2 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.2.png);
    background-position: 78% center;
  }

  .backgr3 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.3.png);
    background-position: 78% center;
  }

  .backgr4 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.4.png);
    background-position: 78% center;
  }
}


@media (max-width: 390px) {

  .btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }

  #hero {
    min-height: 0;
  }

  .backgr1 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.1.png);
    background-position: 78% center;
  }

  .backgr2 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.2.png);
    background-position: 78% center;
  }

  .backgr3 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.3.png);
    background-position: 84% center;
  }

  .backgr4 {
    background: linear-gradient(rgba(0, 0, 0, 0.185), rgb(0, 0, 0)),
      url(./image/1.4.png);
    background-position: 78% center;
  }

  .hero-buttons {
    margin-bottom: 100px;
  }
}

@media (max-width: 360px) {

  .btn {
    padding: 6px 16px;
    font-size: 0.7rem;
  }

  .hero-buttons {
    margin-bottom: 100px;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
  }

  #hero {
    min-height: 0 !important;
  }
}