@charset "UTF-8";
:root {
  --color-primary: #2a6df4;
  --color-primary-dark: #1a5ae8;
  --color-secondary: #00a878;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --shadow-sm: 0 2px 4px var(--color-shadow);
  --shadow-md: 0 4px 8px var(--color-shadow);
  --shadow-lg: 0 8px 16px var(--color-shadow);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --breakpoint-mobile: 320px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1200px;
  --header-height: 80px;
  --header-height-mobile: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  padding-top: var(--header-height);
}
@media (max-width: 767px) {
  body {
    padding-top: var(--header-height-mobile);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}
@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}
.button--primary {
  background-color: var(--color-primary);
  color: white;
}
.button--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.button--secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: var(--header-height);
  transition: all 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}
@media (max-width: 767px) {
  .header {
    height: var(--header-height-mobile);
  }
}
.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--spacing-sm);
}
.header__logo {
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo .logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
  transition: color 0.3s;
}
.header__logo .logo__text:hover {
  color: var(--color-primary-dark);
}
@media (max-width: 767px) {
  .header__logo .logo__text {
    font-size: 1.4rem;
  }
}

/* --- Навигация --- */
.header__nav {
  display: flex;
  align-items: center;
}
@media (max-width: 767px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    z-index: 1001;
  }
  .header__nav.active {
    right: 0;
  }
}
.header__nav .nav__list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}
@media (max-width: 767px) {
  .header__nav .nav__list {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    margin-top: var(--spacing-md);
  }
}

.nav__item {
  position: relative;
}
.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: static;
    box-shadow: none;
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
    background: transparent;
    display: block;
  }
}

.nav__link {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav__link:hover {
  color: var(--color-primary);
}
.nav__link:hover::after {
  width: 100%;
}
.nav__link.active {
  color: var(--color-primary);
}
.nav__link.active::after {
  width: 100%;
}
@media (max-width: 767px) {
  .nav__link {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link::after {
    display: none;
  }
}

/* --- Выпадающее меню --- */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.nav__dropdown li {
  display: block;
}
.nav__dropdown li .nav__link {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  border-bottom: none;
}
.nav__dropdown li .nav__link::after {
  display: none;
}
.nav__dropdown li .nav__link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    display: none;
  }
  .nav__dropdown.open {
    display: block;
  }
  .nav__dropdown li .nav__link {
    padding: 0.6rem 0 0.6rem var(--spacing-md);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__dropdown li .nav__link:hover {
    background: transparent;
  }
}

/* Стрелка для выпадающего меню */
.nav__item--dropdown > .nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__item--dropdown > .nav__link::after {
  content: '▾';
  font-size: 0.6rem;
  position: static;
  width: auto;
  height: auto;
  background: none;
  transition: transform 0.3s;
}
.nav__item--dropdown:hover > .nav__link::after {
  transform: rotate(180deg);
}
@media (max-width: 767px) {
  .nav__item--dropdown > .nav__link::after {
    content: '▾';
    font-size: 0.8rem;
    margin-left: auto;
    transform: none;
  }
  .nav__item--dropdown > .nav__link.open::after {
    transform: rotate(180deg);
  }
}

/* --- Контакты в хедере --- */
.header__contacts {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .header__contacts {
    gap: var(--spacing-sm);
  }
}
.header__phone {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s;
}
.header__phone:hover {
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .header__phone {
    display: none;
  }
}
@media (max-width: 767px) {
  .header__callback {
    display: none;
  }
}
@media (max-width: 479px) {
  .header__callback {
    display: none;
  }
}

/* --- Бургер-меню --- */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  transition: all 0.3s;
}
@media (max-width: 767px) {
  .header__burger {
    display: flex;
  }
}
.header__burger .burger__line {
  width: 28px;
  height: 2.5px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.header__burger.active .burger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__burger.active .burger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.header__burger.active .burger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}
@media (max-width: 767px) {
  .nav-overlay.active {
    display: block;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  .hero {
    min-height: calc(100vh - var(--header-height-mobile));
  }
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}
.hero__title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}
@media (max-width: 767px) {
  .hero__title {
    font-size: 2.5rem;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title {
    font-size: 3rem;
  }
}
.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}
@media (max-width: 767px) {
  .hero__subtitle {
    font-size: 1.2rem;
  }
}
.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}
.hero__buttons .button {
  min-width: 180px;
}
@media (max-width: 479px) {
  .hero__buttons .button {
    min-width: 140px;
    font-size: 0.9rem;
  }
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg-light);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}
@media (max-width: 767px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
@media (max-width: 767px) {
  .service-card {
    scroll-margin-top: calc(var(--header-height-mobile) + 20px);
  }
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}
.service-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}
.service-card__list {
  list-style: none;
}
.service-card__list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}
.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}
.service-card__list li strong {
  color: var(--color-text);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
  padding: var(--spacing-xl) 0;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}
@media (max-width: 767px) {
  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery__item:hover {
  transform: translateY(-5px);
}
.gallery__item:hover .gallery__image {
  transform: scale(1.05);
}
.gallery__image {
  width: 100%;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.gallery__caption {
  padding: var(--spacing-sm);
  background: white;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}
.modal__close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .modal__close {
    top: -50px;
    right: 0;
  }
}
.modal__image {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}
.modal__caption {
  text-align: center;
  margin-top: var(--spacing-sm);
  color: var(--color-text);
}
.modal__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 var(--spacing-md);
}
.modal__nav button {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__nav button:hover {
  background: white;
}

/* ========================================
   BLOG
   ======================================== */
.blog {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg-light);
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}
@media (max-width: 767px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.blog-card__content {
  padding: var(--spacing-lg);
}
.blog-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}
.blog-card__excerpt {
  color: var(--color-text-light);
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}
.blog-card__excerpt.expanded {
  max-height: 2000px;
}
.blog-card__excerpt::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, white);
  transition: opacity 0.3s;
}
.blog-card__excerpt.expanded::after {
  opacity: 0;
}
.blog-card__excerpt p {
  margin-bottom: var(--spacing-sm);
}
.blog-card__excerpt ul, .blog-card__excerpt ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}
.blog-card__excerpt li {
  margin-bottom: 0.5rem;
}
.blog-card__toggle {
  width: 100%;
  padding: var(--spacing-sm);
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
  transition: all 0.3s;
}
.blog-card__toggle:hover {
  background: var(--color-primary);
  color: white;
}
.blog-card__toggle[aria-expanded=true] .toggle-icon {
  transform: rotate(180deg);
}
.blog-card__toggle .toggle-icon {
  transition: transform 0.3s;
}

/* ========================================
   CONTACTS
   ======================================== */
.contacts {
  padding: var(--spacing-xl) 0;
}
.contacts__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .contacts__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}
@media (max-width: 767px) {
  .contacts__content {
    grid-template-columns: 1fr;
  }
}
.contacts__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}
.contacts__address {
  font-style: normal;
  margin-bottom: var(--spacing-lg);
}
.contacts__address p {
  margin-bottom: var(--spacing-sm);
}
.contacts__address p a {
  color: var(--color-primary);
  text-decoration: none;
}
.contacts__address p a:hover {
  text-decoration: underline;
}
.contacts__map-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}
.contacts__map-image {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
}
.contacts__map-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ========================================
   FORM
   ======================================== */
.form__group {
  margin-bottom: var(--spacing-md);
}
.form__label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-text);
}
.form__label::after {
  content: " *";
  color: #ff4444;
  opacity: 0;
}
.form__label[for]:after {
  opacity: 1;
}
.form__label[for=email]:after, .form__label[for=message]:after {
  opacity: 0;
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(42, 109, 244, 0.2);
}
.form__input:invalid:not(:focus):not(:-moz-placeholder), .form__select:invalid:not(:focus):not(:-moz-placeholder), .form__textarea:invalid:not(:focus):not(:-moz-placeholder) {
  border-color: #ff4444;
}
.form__input:invalid:not(:focus):not(:placeholder-shown), .form__select:invalid:not(:focus):not(:placeholder-shown), .form__textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ff4444;
}
.form__textarea {
  resize: vertical;
  min-height: 100px;
}
.form__submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}
.form__message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
}
.form__message.success {
  background-color: rgba(0, 168, 120, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(0, 168, 120, 0.3);
}
.form__message.error {
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #1a1a1a;
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}
.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}
@media (max-width: 767px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}
.footer__section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
.footer__logo .logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
}
.footer__description {
  color: #999;
  line-height: 1.6;
}
.footer__title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: white;
}
.footer__nav-list {
  list-style: none;
}
.footer__nav-list li {
  margin-bottom: var(--spacing-xs);
}
.footer__nav-link {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}
.footer__nav-link:hover {
  color: white;
}
.footer__contacts {
  color: #999;
  font-style: normal;
  line-height: 1.6;
}
.footer__contacts a {
  color: #999;
  text-decoration: none;
}
.footer__contacts a:hover {
  color: white;
}
.footer__bottom {
  border-top: 1px solid #333;
  padding-top: var(--spacing-md);
  text-align: center;
}
.footer__copyright {
  color: #666;
  font-size: 0.9rem;
}

/* ========================================
   QUICK BUTTONS
   ======================================== */
.quick-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
@media (max-width: 479px) {
  .quick-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
}

.quick-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}
.quick-btn:hover {
  transform: scale(1.1);
}
@media (max-width: 479px) {
  .quick-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

.phone-btn {
  background: #25D366;
}
.telegram-btn {
  background: #0088cc;
}
.viber-btn {
  background: #7360F2;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-indicator:hover {
  opacity: 1;
}
@media (max-width: 767px) {
  .scroll-indicator {
    display: none;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */
@media (max-width: 479px) {
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .service-card {
    padding: var(--spacing-md);
  }
  .service-card__title {
    font-size: 1.2rem;
  }
}

/* Для плавного открытия мобильного меню */
@media (max-width: 767px) {
  .header__nav {
    will-change: right;
  }
}

/* Анимация для якорных переходов */
.service-card,
#service-outdoor,
#service-interior,
#service-printing,
#service-souvenirs {
  scroll-margin-top: calc(var(--header-height) + 20px);
}
@media (max-width: 767px) {
  .service-card,
  #service-outdoor,
  #service-interior,
  #service-printing,
  #service-souvenirs {
    scroll-margin-top: calc(var(--header-height-mobile) + 20px);
  }
}

/* ========================================
   MOBILE MENU FIXES
   ======================================== */

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Оверлей */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}
@media (max-width: 767px) {
    .nav-overlay.active {
        display: block;
    }
}

/* Мобильное меню */
@media (max-width: 767px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        z-index: 1001;
        display: flex !important;
    }
    .header__nav.active {
        right: 0;
    }
    
    .header__nav .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav__item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav__item:last-child {
        border-bottom: none;
    }
    
    .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--color-text);
        border-bottom: none;
    }
    .nav__link::after {
        display: none;
    }
    
    /* Выпадающее меню в мобильной версии */
    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        background: transparent;
        display: none;
        width: 100%;
    }
    .nav__dropdown.open {
        display: block;
    }
    .nav__dropdown li .nav__link {
        padding: 10px 0 10px 20px;
        font-size: 1rem;
        font-weight: 400;
        color: var(--color-text-light);
        border-bottom: none;
    }
    .nav__dropdown li .nav__link:hover {
        background: transparent;
        color: var(--color-primary);
    }
    
    /* Стрелка в мобильном меню */
    .nav__item--dropdown > .nav__link::after {
        content: '▾';
        font-size: 0.8rem;
        margin-left: auto;
        transform: none;
        transition: transform 0.3s;
        position: static;
        width: auto;
        height: auto;
        background: none;
    }
    .nav__item--dropdown > .nav__link.open::after {
        transform: rotate(180deg);
    }
}

/* Бургер-кнопка */
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    transition: all 0.3s;
}
@media (max-width: 767px) {
    .header__burger {
        display: flex;
    }
}
.header__burger .burger__line {
    width: 28px;
    height: 2.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}
.header__burger.active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header__burger.active .burger__line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.header__burger.active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Контакты в мобильном меню */
@media (max-width: 767px) {
    .header__contacts {
        gap: 8px;
    }
    .header__phone {
        font-size: 0.9rem;
    }
    .header__callback {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}