:root {
  --accent: #E67E22;
  /* orange from your Tilda */
  --bg: #fff1db;
  --text: #111;
  --muted: #6b6b6b;
  --maxw: 1200px;
  --radius: 15px;
  --container-padding: 20px;
  --font: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

main {
  min-height: calc(100vh - 70px - 60px);
  /* 70px — высота хедера, 60px — примерная высота футера */
  display: flex;
  flex-direction: column;
}

svg {
  margin-right: 4px;
}

/* container */
.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* HEADER */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
  background: #ffffffd1;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 8px 4px rgba(255, 188, 80, 0.25);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* расстояние между логотипом и текстом */
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 18px;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active,
.logo:focus {
    text-decoration: none;
    color: inherit;
}

.logo-img {
  width: 40px;
  /* размер логотипа */
  height: 40px;
  border-radius: 50%;
  /* делаем круглым */
  object-fit: cover;
  /* чтобы картинка не искажалась */
  display: block;
}

/* Контакты в хедере */
.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  text-align: right;
}

.header-contacts .contact-item {
  color: var(--text);
  text-decoration: none;
  text-align: left;
}

.header-contacts .contact-item:hover {
  color: var(--accent);
}

/* Для десктопа: показываем рядом с навигацией */
@media(min-width: 901px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .site-nav {
    flex: 1;
    display: flex;
    gap: 28px;
    align-items: center;
  }

  .header-contacts {
    flex-direction: column;
    text-align: right;
  }
}

/* Мобильный вид: скрываем десктоп-контакты */
@media(max-width:900px) {
  .header-contacts {
    display: none;
  }
}

/* DESKTOP NAV */
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.site-nav>a,
.dropbtn {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  padding: 10px 0;
  opacity: .95;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}

.site-nav a:hover,
.dropbtn:hover {
  color: var(--accent);
}

/* DESKTOP DROPDOWN */
.dropdown {
  position: relative;
}

/* Скрываем dropdown по умолчанию */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  /* padding:6px 0; */
  margin-top: 6px;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}

/* Все ссылки без скруглений */
.dropdown-content a {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  display: block;
  border-radius: 0;
  /* убираем общий border-radius */
}

/* Скругляем только первую ссылку сверху */
.dropdown-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Скругляем только последнюю ссылку снизу */
.dropdown-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* hover остаётся для всех ссылок */
.dropdown-content a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* BURGER */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}

.burger span {
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background: #111;
  left: 50%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* линии по вертикали */
.burger span:nth-child(1) {
  top: 10px;
  transform: translateX(-50%);
}

.burger span:nth-child(2) {
  top: 18px;
  transform: translateX(-50%);
}

.burger span:nth-child(3) {
  top: 26px;
  transform: translateX(-50%);
}

/* open state (крестик) */
.burger.open span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 0;
  width: 260px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.06);
  padding: 16px;
  z-index: 999;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.mobile-menu a:hover {
  background: var(--bg);
}

/* MOBILE DROPDOWN */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropbtn {
  background: none;
  border: 0;
  padding: 12px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  width: 100%;
}

.mobile-dropdown-content {
  display: none;
  /* управление через JS - slideToggle */
  flex-direction: column;
  margin-top: 6px;
  padding-left: 6px;
}

.mobile-dropdown-content a {
  display: block;
  /* ключ: каждая ссылка отдельной строкой */
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.mobile-dropdown-content a+a {
  margin-top: 6px;
}

/* расстояние между пунктами */
.mobile-dropdown-content a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* RESPONSIVE */

@media(max-width:900px) {
  .site-nav  {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-dropdown {
    overflow-y: auto;
    height: auto;
    max-height: 200px;
  }
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* общая иконка */
.header-socials .social-item {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  transition: .2s;
  font-size: 18px;
}

.header-socials .social-item:hover {
  color: var(--accent);
}

/* TELEGRAM */
.header-socials .fa-telegram {
  color: #229ED9;
      font-size: 24px;
}

/* VK */
.header-socials .fa-vk {
  color: #0077ff;
      font-size: 24px;
}

/* MAX SVG */
.header-socials .max-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.header-socials .social-item.max {
  color: #7c3aed; /* фиолетовый fallback */
}

.header-socials .social-item.max svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.mobile-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.mobile-socials a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

@media(max-width:1126px) {
    .header-socials {
        display: none;
    }
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/main-banner.jpg) no-repeat center 30% fixed;
  background-blend-mode: multiply;
  background-size: cover;
  z-index: 0;

  /* стеклянный эффект */
  background-color: rgba(230, 126, 34, 0.1);
  backdrop-filter: blur(6px);
  /* размытие как стекло */
  clip-path: polygon(0 20%, 100% 10%, 100% 90%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  /* ограничим ширину блока */
  margin: 0 auto;
  padding: 40px 30px;
  /* внутренние отступы */
  background-color: rgba(0, 0, 0, 0.15);
  /* полупрозрачная подложка */
  border-radius: 16px;
  /* закруглённые углы для красоты */
}


.hero-title {
  font-size: clamp(16px, 5vw, 24px);
  /* адаптивный размер */
  font-weight: 800;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1s forwards 0.3s;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  /* адаптивный размер */
  max-width: 800px;
  margin: 0 auto 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1s forwards 0.6s;
}

.hero-title,
.hero-sub {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(45deg, #e67e22, #ff9b3c);
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  background-size: 200% 200%;
  transition: all 0.5s ease;
  /* плавный переход */
  position: relative;
  overflow: hidden;
}

/* Плавная инверсия */
.hero-cta:hover {
  color: #e67e22;
  /* текст оранжевый */
  background: linear-gradient(45deg, #fff, #fff);
  /* фон становится светлым */
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

/* hero big image placed below hero text, rounded corners */
.hero-image-wrap {
  margin-top: 36px;
  padding: 30px;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 520px;
  object-fit: cover;
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero-inner {
    padding: 0;
  }
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-note {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
  max-width: 260px;
}

.hero-cta-main {
  background: linear-gradient(45deg, #e67e22, #ff9b3c);
}

.hero-cta-secondary {
  background: #fff;
  color: #222;
  border: 2px solid #fff;
}

.hero-cta-secondary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
    .hero {
        margin-top:40px;
    }
    
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-note {
    text-align: center;
  }
  
  .form-wrapper h2 {
      font-size: 20px;
  }
}

.features {
  padding: 80px 0;
  background: #fafafa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: .3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(230,126,34,.15);
  position: absolute;
  top: 12px;
  right: 18px;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.feature-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

/* адаптив */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.stats {
  padding: 80px 0;
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 18px;
  background: #fafafa;
  transition: .3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #e67e22;
  margin-bottom: 10px;
}

.stat-text {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* выделенный блок */
.stat-item.highlight {
  background: linear-gradient(135deg, #e67e22, #ff9b3c);
  color: #fff;
}

.stat-item.highlight .stat-number,
.stat-item.highlight .stat-text {
  color: #fff;
}

/* адаптив */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* section base */
.section {
  padding: 20px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 32px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.about-card h2 {
  margin-bottom: 8px
}

.divider {
  height: 2px;
  width: 60px;
  background: var(--accent);
  margin: 18px 0;
  border-radius: 4px
}

.about-image {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 360px
}

/* CARDS GRID */
.cards-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cards-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s;
}

.slider-btn:hover {
  background: var(--accent);
  color: #fff;
}

.slider-btn.left {
  left: -18px;
}

.slider-btn.right {
  right: -18px;
}

.card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 7px 1px #e67e2247;
  transition: transform 0.3s, box-shadow 0.3s;

  /* ВАЖНО: делаем карточку вертикальным flex-контейнером */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
}

.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.card h3 {
  padding: 12px 16px 4px;
  font-size: 18px;
  max-height: 43px;
}

.card p {
  padding: 0 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* КНОПКА */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  /* Отступы от границ карточки */
  margin: 0 16px 16px;

  padding: 10px 18px;
  border-radius: 40px;

  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border: 1.6px solid var(--muted);
  text-decoration: none;

  transition: 0.3s ease;
  align-self: flex-start;
}

.card-btn .icon {
  transition: transform 0.3s ease;
  font-size: 15px;
}

.card-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.25);
}

.card-btn:hover .icon {
  transform: translateX(4px);
}

@media(max-width:900px) {
  .slider-btn {
    display: none;
  }

  .card {
    flex: 0 0 70%;
  }
}

/* ALT ROW (services) */
.alt-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px
}

.alt-row.reverse {
  flex-direction: row-reverse
}

.alt-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 320px
}

.alt-text {
  flex: 1
}

.alt-text h3 {
  margin-bottom: 8px
}

@media (max-width: 768px) {
    .card h3 {
        max-height: initial;
    }

  .alt-row,
  .alt-row.reverse {
    flex-direction: column;
    gap: 20px;
  }

  .alt-image,
  .alt-text {
    flex: unset;
    width: 100%;
  }

  .alt-image {
    min-height: 200px;
    /* можно уменьшить для мобильных */
  }
}

/* PROCESS */
.process {
  background: #fff
}

.steps {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  max-width: 900px;
  margin: 20px auto 0
}

.step {
  background: #fdf7f1;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06)
}

/* SLIDER */
.testimonials {
  background: var(--accent);
  color: #000;
  padding-top: 60px;
  padding-bottom: 60px
}

.sldr {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 20px auto
}

.sldr-window {
  overflow: hidden;
  flex: 1
}

.sldr-list {
  display: flex;
  transition: transform .45s ease;
  list-style: none;
  padding: 0;
  margin: 0
}

.sldr-item {
  min-width: 100%;
  padding: 18px;
  background: transparent
}

.sldr-item blockquote {
  font-size: 18px;
  margin: 0 0 12px
}

.sldr-item cite {
  color: var(--muted)
}

/* slider arrows */
.sldr-arrow {
  background: #000;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTACT */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.form-row {
  display: flex;
  gap: 12px
}

.form-row input {
  flex: 1
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none
}

textarea {
  min-height: 120px;
  resize: vertical
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px
}

.note {
  color: var(--muted);
  font-size: 13px
}

/* FOOTER */
.site-footer {
  background: #fff;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0
}

.footer-contacts .contact-item {
  color: var(--text);
  text-decoration: none;
}

.footer-contacts .contact-item:hover {
  color: var(--accent);
}

/* SOCIALS COLUMN */
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px; /* чтобы текст не прыгал */
}

.footer-socials .social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.footer-socials .social-item i {
  font-size: 20px;
  width: 22px;
  text-align: center;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* MAX можно чуть выделить */
.social-item.max svg {
  transform: translateY(1px);
}

.footer-socials .social-item:hover {
  color: var(--accent);
}

/* Подвал */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Мобильная версия */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}


/* Цвета иконок */
.footer-socials .fa-youtube { color: #ff0000;  }   /* YouTube */
.footer-socials .fa-vk      { color: #0077ff; font-size: 22px;}   /* VK */
.footer-socials .fa-instagram { color: #e1306c; }
.footer-socials .fa-telegram { color: #229ED9; font-size: 22px;}

/* При наведении меняем цвет текста */
.footer-socials .social-item:hover {
  color: var(--accent);
}


/* PAGE HERO */
.page-hero {
  padding-top: 60px;
  padding-bottom: 40px;
  text-align: center;
}

.page-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

/* CONTENT */
.page-content {
    margin-bottom: 40px;
}

.page-content p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.calc-cta {
  text-align: center;
  margin: 40px 0 20px;
}

.calc-text {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
}

.calc-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(45deg, #e67e22, #ff9b3c);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: .25s ease;
  box-shadow: 0 10px 24px rgba(230,126,34,.25);
}

.calc-button i {
  font-size: 16px;
}

.calc-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(230,126,34,.35);
}

.calc-button:active {
  transform: scale(0.98);
}

.calc-cta-box {
  text-align: center;
  margin: 70px 0 60px; /* ⬅️ больше воздуха сверху и снизу */
  padding: 48px 24px;  /* ⬅️ увеличили вертикальный padding */
  border-radius: 18px;

  background: #fff;
  border: 1px solid rgba(230,126,34,.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);

  position: relative;
  overflow: hidden;
}

/* лёгкий акцентный фон */
.calc-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(230,126,34,.08), transparent 60%);
  pointer-events: none;
}

.calc-text {
  position: relative;
  max-width: 720px;
  margin: 0 auto 20px;

  font-size: 20px;   /* desktop */
  line-height: 1.6;
  color: #555;
}

@media (max-width: 992px) {
  .calc-text {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .calc-text {
    font-size: 16px;
    line-height: 1.5;
  }
}

.calc-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  background: linear-gradient(45deg, #e67e22, #ff9b3c);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;

  transition: .25s ease;
  box-shadow: 0 10px 24px rgba(230,126,34,.25);
}

.calc-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(230,126,34,.35);
}

@media (max-width: 992px) {
  .calc-button {
    font-size: 16px;
    padding: 14px 24px;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .calc-button {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;

    font-size: 15px;
    padding: 14px 18px;
  }

  .calc-button svg {
    width: 16px;
    height: 16px;
  }
}

/* GALLERY */
.gallery-section {
  padding: 40px 0;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* плитки центрируются */
  gap: 18px;
}

/* Карточка */
.gallery-item {
  flex: 0 1 276px;           /* фиксируем ширину плитки */
  max-width: 276px;
  aspect-ratio: 276 / 193;   /* высота считается автоматически */
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Контент внутри плитки */
.gallery-item img,
.gallery-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
}

/* Бейдж для видео */
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: blur(2px);
}


.video-badge svg {
    margin-right: 0;
    font-size: 14px;
}


/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

#lightbox video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  outline: none;
}

#lightbox-close,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 60px;
  font-weight: 300;
  cursor: pointer;
  user-select: none;
}

#lightbox-close {
  top: 5%;
  right: 5%;
  transform: none;
  font-size: 50px;
}

#lightbox-next {
  right: 3%;
  padding: 40px;
}

#lightbox-prev {
  position: absolute;
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 60px;
  font-weight: 300;
  cursor: pointer;
  user-select: none;
  padding: 40px;
}

/* MOBILE Lightbox Controls */
@media (max-width: 768px) {

  #lightbox-prev,
  #lightbox-next,
  #lightbox-close {
    background: rgba(0, 0, 0, 0.45);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 32px;
    color: #fff;
  }

  #lightbox-prev {
    left: 10px;
  }

  #lightbox-next {
    right: 10px;
  }

  #lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 32px;
    padding: 10px 14px;
  }

  #lightbox img {
    max-width: 95%;
    max-height: 80%;
    border-radius: 8px;
  }
}
/* =========================
   LOADER
========================= */

.gallery-loader {
  text-align: center;
  padding: 50px 0;
  color: #777;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;

  border: 3px solid #e6e6e6;
  border-top: 3px solid #999;

  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   BUTTON WRAP
========================= */

.gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

/* =========================
   LOAD MORE BUTTON (NEW STYLE)
========================= */

.gallery-load-more {
  padding: 14px 38px;
  font-size: 16px;
  font-weight: 500;

  border-radius: 999px;

  background: #f59133;
    color: white;

  border: 1px solid #ddd;

  cursor: pointer;

  transition: all 0.25s ease;

  letter-spacing: 0.2px;
}

/* hover — мягкий эффект */
.gallery-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230,126,34,.32);
}

/* active */
.gallery-load-more:active {
  transform: translateY(0);
}

/* loading / disabled */
.gallery-load-more.loading,
.gallery-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
/* CONTACTS PAGE */
.contacts-section, .privacy-policy-section {
  padding: 80px 0;
}

.page-title, .privacy-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.contacts-subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
  text-align: center;
}

.contacts-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-block {
  flex: 1 1 280px;
  padding: 30px;
  border-radius: 12px;
  /* background: #f6f6f6; */
  transition: 0.3s;
  text-align: center;
}

.contact-block:hover {
  /* background: #ececec; */
}

.contact-block i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #333;
}

.contact-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.contact-block a {
  font-size: 18px;
  text-decoration: none;
  color: #444;
}

.contact-block {
  position: relative;
}

.contact-block.phone,
.contact-block.email {
  box-shadow: 0px 0px 11px 2px #e67e229c;
}

.contact-block.phone::before,
.contact-block.email::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 12px 0 0 12px;
}

.contact-block.phone::before {
  background: #ff9900;
}

.contact-block.email::before {
  background: #ff9900;
}

@media (max-width: 768px) {
  .page-title{
    font-size: 26px;
  }

    .privacy-title {
    font-size: 20px;
  }

  .contacts-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .contact-block {
    padding: 25px;
  }
}

/* SAMPLES PAGE */
.samples-section {
  padding: 80px 0;
  padding-bottom: 0;
}

.samples-section .page-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.samples-section .section-desc {
  max-width: 700px;
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.samples-section .page-title,
.samples-section .section-desc {
  text-align: center;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.sample-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  /* квадратные карточки */
  background: #f0f0f0;
}

.sample-item img,
.sample-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* масштабирует и обрезает */
  display: block;
  transition: transform 0.3s ease;
}

.sample-item:hover img,
.sample-item:hover video {
  transform: scale(1.05);
}

/* Секция с фоном */
.form-section {
  padding: 80px 20px;
  background: url(../img/contact.jpg) no-repeat center center fixed;
  background-blend-mode: multiply;
  background-size: cover;
  background-color: rgba(230, 126, 34, 0.15);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 0;
}


/* Форма */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.form-wrapper:hover {
  transform: translateY(-5px);
}

.form-wrapper h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  font-weight: 700;
}
/* =========================================
   CONTACT FORM 7
========================================= */

/* Поля формы */
.form-wrapper .wpcf7-form-control {
  width: 100%;
  padding: 14px 20px;
  
  border-radius: 18px;
  background: #fff;
  font-size: 16px;
  color: #222;
  outline: none;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .2s ease;
  margin-bottom: 18px;
  box-sizing: border-box;
}

/* focus */
.form-wrapper .wpcf7-form-control:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(230,126,34,.12);
}

/* placeholder */
.form-wrapper .wpcf7-form-control::placeholder {
  color: #999;
}

/* textarea */
.form-wrapper .wpcf7-textarea {
  resize: vertical;
  min-height: 140px;
  max-height: 240px;
  font-family: inherit;
  line-height: 1.5;
}

/* =========================================
   FILE INPUT
========================================= */

.form-wrapper input[type="file"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2px dashed rgba(230,126,34,.45);
  background: rgba(255,255,255,.75);
  color: #777;
  cursor: pointer;
  transition: .25s ease;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.form-wrapper input[type="file"]:hover {
  border-color: #e67e22;
  background: rgba(230,126,34,.05);
}

.form-wrapper input[type="file"]::file-selector-button {
  background: linear-gradient(45deg, #e67e22, #ff9b3c);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  margin-right: 14px;
  font-weight: 600;
  transition: .25s ease;
}

.form-wrapper input[type="file"]::file-selector-button:hover {
  transform: scale(1.03);
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.form-wrapper .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: linear-gradient(45deg, #e67e22, #ff9b3c);
  color: #fff;

  padding: 15px 34px;
  border-radius: 40px;

  font-weight: 600;
  font-size: 16px;

  border: none;
  cursor: pointer;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
}

.form-wrapper .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230,126,34,.32);
}

.form-wrapper .wpcf7-submit:active {
  transform: scale(.98);
}

/* =========================================
   CHECKBOX / PRIVACY
========================================= */

.privacy-checkbox {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

/* CF7 wrapper */
.privacy-checkbox .wpcf7-form-control.wpcf7-checkbox {
  display: contents;
}

/* убираем стандартные отступы CF7 */
.privacy-checkbox .wpcf7-list-item {
  margin: 0;
}

/* label = единая строка */
.privacy-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

/* checkbox */
.privacy-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #e67e22;
}

/* текст рядом */
.privacy-extra {
  display: inline;
  color: #777;
  line-height: 1.4;
}

/* ссылка */
.privacy-extra a {
  color: #e67e22;
  text-decoration: none;
  border-bottom: 1px solid rgba(230,126,34,.35);
}

.privacy-extra a:hover {
  border-bottom-color: #e67e22;
}

/* ❗ ВАЖНО: убираем лишние переносы CF7 */
.privacy-checkbox br {
  display: none;
  height: 0;
}

/* ошибка */
.wpcf7-form.invalid .privacy-checkbox {
  border: 1px solid #ff3b30;
  background: rgba(255, 59, 48, 0.06);
  padding: 8px 10px;
  border-radius: 10px;
}


/* =========================================
   ERRORS
========================================= */

/* поля с ошибкой */
.form-wrapper .wpcf7-not-valid {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 4px rgba(255,59,48,.12) !important;
}

/* текст ошибки */
.wpcf7-not-valid-tip {
  color: #ff3b30;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 14px;
  display: block;
}

/* checkbox error */
.privacy-checkbox .wpcf7-not-valid {
  outline: 2px solid #ff3b30;
  border-radius: 4px;
}

/* =========================================
   RESPONSE OUTPUT
========================================= */

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

/* success */
.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf3;
  border: 1px solid #22c55e;
  color: #15803d;
}

/* error */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .form-section {
    padding: 60px 20px;
  }

  .form-wrapper {
    padding: 30px 20px;
  }

  .form-wrapper .wpcf7-form-control {
    font-size: 15px;
    padding: 13px 16px;
  }

  .form-wrapper .wpcf7-submit {
    width: 100%;
  }

}

/* =========================================
   404 PAGE
========================================= */

.not-found-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #f8f8f8;
}

.not-found-section h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.not-found-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.not-found-section .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ff9b3c;
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: .25s ease;
}

.not-found-section .btn:hover {
  background: #e67e22;
}

/* =========================================
   PATCH — единые отступы и заголовки страниц
   Услуги / Примеры работ / Контакты
========================================= */

/* одинаковый верхний отступ секций */
.page-hero,
.samples-section,
.contacts-section,
.privacy-policy-section {
  padding-top: 120px;
}

/* одинаковые заголовки */
.page-title,
.samples-section .page-title,
.privacy-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  text-align: center;
  color: #111;
}

/* одинаковые подзаголовки */
.page-subtitle,
.contacts-subtitle,
.samples-section .section-desc {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.65;
  color: #666;
  text-align: center;
}

/* мобильная версия */
@media (max-width: 768px) {

  .page-hero,
  .samples-section,
  .contacts-section,
  .privacy-policy-section {
    padding-top: 95px;
  }

  .page-title,
  .samples-section .page-title,
  .privacy-title {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .page-subtitle,
  .contacts-subtitle,
  .samples-section .section-desc {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
}

/* =========================================
   HERO FIX — landscape mobile
   чтобы заголовок не обрезался
========================================= */

@media (max-width: 900px) and (orientation: landscape) {

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 40px;

    align-items: flex-start;
  }

  .hero-inner {
    width: 100%;
    padding: 20px;
  }

  .hero-title {
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.35;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 20px;
  }
}

/* FIX: центрирование текста в calc-button на мобильных */
@media (max-width: 600px) {

  .calc-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

}

/* =========================================
   REVIEWS
========================================= */

.reviews {
  padding: 110px 0;
  background: #faf8f5;
}

.reviews-slider-wrapper {
  position: relative;
}

.reviews-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 6px 20px;

  scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 320px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;

  box-shadow:
    0 10px 30px rgba(0,0,0,.06);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.review-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,.12);
}

.review-card img {
  width: 100%;
  display: block;
}

/* кнопки */

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;

  background: #fff;
  color: #222;

  cursor: pointer;

  box-shadow:
    0 8px 24px rgba(0,0,0,.12);

  transition: .25s ease;
}

.reviews-btn:hover {
  background: var(--accent);
  color: #fff;
}

.reviews-btn.left {
  left: -20px;
}

.reviews-btn.right {
  right: -20px;
}

/* mobile */

@media (max-width: 768px) {

  .reviews {
    padding: 80px 0;
  }

  .review-card {
    flex: 0 0 82%;
  }

  .reviews-btn {
    display: none;
  }
}

/* =========================================
   GUARANTEES
========================================= */

.guarantees {
  padding: 110px 0;
  background:
    linear-gradient(
      180deg,
      #faf8f5 0%,
      #ffffff 100%
    );
}

.guarantees-box {
  background: #fff;

  border-radius: 36px;

  padding:
    clamp(32px, 5vw, 70px);

  box-shadow:
    0 20px 60px rgba(0,0,0,.06);

  border: 1px solid rgba(0,0,0,.04);
}

.guarantees-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.guarantees-label {
  display: inline-block;

  margin-bottom: 18px;
  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(230,126,34,.12);
  color: var(--accent);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;

  padding: 26px;

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.95),
      rgba(248,248,248,.95)
    );

  border: 1px solid rgba(0,0,0,.05);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.guarantee-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 14px 30px rgba(0,0,0,.08);
}

.guarantee-icon {
  width: 54px;
  height: 54px;

  min-width: 54px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #e67e22,
      #ffae57
    );

  color: #fff;
  font-size: 20px;

  box-shadow:
    0 10px 24px rgba(230,126,34,.22);
}

.guarantee-item h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 10px;
  color: #222;
}

.guarantee-item p {
  margin: 0;
  color: #666;
  line-height: 1.65;
  font-size: 15px;
}

.guarantee-icon svg, .guarantee-icon i {
    margin-right: 0px;
}

/* mobile */

@media (max-width: 900px) {

  .guarantees-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .guarantees {
    padding: 80px 0;
  }

  .guarantee-item {
    padding: 22px;
    border-radius: 22px;
  }

  .guarantee-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {

  .guarantees-box {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .guarantees-head {
    margin-bottom: 32px;
  }

  .guarantee-item {
    flex-direction: column;
    gap: 14px;

    padding: 18px;
    border-radius: 18px;
  }

  .guarantee-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 14px;

    font-size: 16px;
  }

  .guarantee-item h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .guarantee-item p {
    font-size: 14px;
    line-height: 1.5;
  }
}

.file-hint {
  display: block;
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

.gallery-load-more-wrap {
  margin-bottom: 60px;
  text-align: center;
}

@media (max-width: 768px) {
  .gallery-load-more-wrap {
    margin-bottom: 40px;
  }
}