/* ---------- RESET + БАЗА ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #1e1e1e;
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

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

/* ---------- ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ ---------- */
:root {
  --color-bg: #1e1e1e;
  --color-text: #ffffff;
  --color-border: rgba(255,255,255,0.25);
  --color-button-bg: #254568;
  --color-button-text: #ffffff;
  --color-button-outline: #ffffff;
  --color-accent-bg: #28292a;
  --header-height: 70px;
}

/* ---------- ЛЕЙАУТЫ ---------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sections-container-inner, .page-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class^="col-"] {
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-8 { width: 66.666%; }
}
@media (min-width: 992px) {
  .col-lg-6 { width: 50%; }
}

/* ---------- ШАПКА (исправлено выравнивание) ---------- */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  transform: translateY(-100%);
  transition: transform 0.4s ease, background 0.3s ease;
}
.page-header.-visible {
  transform: translateY(0);
}
.page-header.-scrolled {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.menu {
  background: transparent;
}
.menu .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 20px;
}
.logo-item, .social-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo-img {
  max-height: 40px;
  width: auto;
}
.menu-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.menu-list a {
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.menu-list a:hover {
  opacity: 0.7;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.social-links .item {
  list-style: none;
  display: flex;
  align-items: center;
}
.social-links .item a {
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Убираем точку после пунктов меню */
.menu-item::after {
  display: none !important;
}

/* Мобильная шапка */
@media (max-width: 767px) {
  .menu .inner {
    flex-direction: column;
    gap: 12px;
  }
  .menu-list {
    gap: 1rem;
  }
  .menu-list a {
    font-size: 0.7rem;
  }
}

/* ---------- РАЗДЕЛИТЕЛЬ С ТОЧКАМИ (на всю ширину) ---------- */
.divider-fullwidth {
  padding: 0 !important;
  background-color: #254568;
}
.divider-wrapper {
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dotted-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.dotted-divider::before,
.dotted-divider::after {
  content: "• • •";
  font-size: 24px;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.6);
}
.dotted-divider {
  width: 100%;
  max-width: 300px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.6) 8px, transparent 8px, transparent 16px);
}
@media (max-width: 768px) {
  .dotted-divider {
    max-width: 200px;
  }
}

/* ---------- COVER (обложка) ---------- */
.cover {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.cover-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cover-slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cover-slides {
  width: 100%;
  height: 100%;
  position: relative;
}
.cover-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.cover-slide.active {
  opacity: 1;
  z-index: 2;
}
.cover-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 80px 30px 40px;
  pointer-events: none;
  z-index: 10;
}
.cover-wrapper > * {
  pointer-events: auto;
}
.cover-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}
.cover-header {
  color: white;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}
.logo-img {
  max-height: 50px;
  width: auto;
  margin: 0 auto;
}
.cover-down-arrow {
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.cover-down-arrow:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(5px);
}

/* ---------- СЕКЦИИ ---------- */
.sections-container {
  padding: 60px 0;
  background-color: var(--color-bg);
}
.-background-accent {
  background-color: var(--color-accent-bg);
}
.-background-contrast {
  background-color: #254568;
}
.-large-pad-before { padding-top: 80px; }
.-large-pad-after { padding-bottom: 80px; }
.-medium-pad-before { padding-top: 50px; }
.-medium-pad-after { padding-bottom: 50px; }

/* Фоновая секция с цитатой */
.quote-bg {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://i.wfolio.ru/x/cXPZPmu9lCw5tkRNat7JtyHjrPiZiclN/VJgIrluFLtZWGwzaT5FJ07DuSK__bTQA/RqGOfFpD55bAAhcGKvxNefJws3hOW_BX/DO9bG6ygwe-gmIYjvb8rxKCoYgyvsG9D/GP0eDIwCrITh6mDrrZF51g.jpg') center/cover fixed;
}
@media (max-width: 768px) {
  .quote-bg {
    background-attachment: scroll;
  }
}
.quote-label, .section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 1rem;
}
.quote-bg blockquote {
  border-left: 3px solid white;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.quote-bg blockquote h2 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

/* Картинка-аватар */
.avatar-img {
  border-radius: 24px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--color-button-bg);
  background: var(--color-button-bg);
  color: var(--color-button-text);
  cursor: pointer;
}
.button.-outline {
  background: transparent;
  border-color: var(--color-button-outline);
  color: var(--color-button-outline);
}
.button.-outline:hover {
  background: white;
  color: #1e1e1e;
  border-color: white;
}
.button.-fill:hover {
  background: transparent;
  color: var(--color-button-bg);
  border-color: var(--color-button-bg);
}
.action-section {
  margin-top: 1.5rem;
}
.action-section.-left {
  text-align: left;
}

/* ---------- СЛАЙДЕР (исправлен — фото не ломаются) ---------- */
.slider-section {
  position: relative;
}
.slider-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  flex: 0 0 100%;
}
.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.slider-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}
.slider-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.2s;
}
.slider-arrow:hover {
  opacity: 0.7;
}
.arrow {
  width: 30px;
  height: 2px;
  background: white;
  position: relative;
  display: block;
}
.arrow::before, .arrow::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: white;
}
.arrow.-left::before {
  top: -4px;
  left: -2px;
  transform: rotate(45deg);
}
.arrow.-left::after {
  top: 4px;
  left: -2px;
  transform: rotate(-45deg);
}
.arrow.-right::before {
  top: -4px;
  right: -2px;
  transform: rotate(-45deg);
}
.arrow.-right::after {
  top: 4px;
  right: -2px;
  transform: rotate(45deg);
}
.slider-count {
  font-size: 0.9rem;
  font-family: monospace;
  display: flex;
  gap: 8px;
  align-items: center;
}
.slider-separator {
  opacity: 0.7;
}

/* ---------- ФУТЕР (без wfolio) ---------- */
.page-footer {
  text-align: center;
  padding: 40px 0 30px;
  border-top: 1px solid var(--color-border);
}
.footer-content p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- ПЛАВАЮЩИЕ КНОПКИ ---------- */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 400;
}
.floating-button {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  color: white;
  font-size: 1.2rem;
  border: none;
}
.floating-button:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.05);
}
.js-back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Контакты */
.contacts-links a {
  color: var(--color-button-outline);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contacts-links a:hover {
  border-bottom-color: white;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 767px) {
  .sections-container {
    padding: 40px 0;
  }
  .-large-pad-before { padding-top: 50px; }
  .-large-pad-after { padding-bottom: 50px; }
  .cover-wrapper {
    padding: 60px 20px 30px;
  }
  .cover-header.-medium {
    font-size: 1.6rem;
  }
  .row {
    gap: 40px;
  }
  .text-section h2 {
    font-size: 1.8rem;
    text-align: center !important;
  }
  .action-section {
    text-align: center;
  }
  .slider-arrows {
    gap: 1rem;
  }
  .floating-buttons {
    bottom: 20px;
    right: 15px;
  }
  .slide img {
    aspect-ratio: 4/3;
  }
}


/* ---------- КРУГЛАЯ КНОПКА СВЯЗИ ---------- */
.contact-chat-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #254568;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-chat-btn i {
  font-size: 28px;
  color: white;
}

.contact-chat-btn:hover {
  background: #1a3550;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.contact-chat-btn:active {
  transform: scale(0.95);
}

/* ---------- МОДАЛЬНОЕ ОКНО ---------- */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.contact-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.contact-modal__window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 480px;
  background: #1e1e1e;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-modal.is-open .contact-modal__window {
  transform: translate(-50%, -50%) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.contact-modal__close i {
  font-size: 18px;
  color: white;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.contact-modal__card {
  padding: 40px 30px 35px;
  text-align: center;
}

.contact-modal__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #254568;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-modal__name {
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  color: white;
  margin-bottom: 6px;
}

.contact-modal__occupation {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.contact-modal__info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 25px;
}

.contact-modal__phone,
.contact-modal__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.contact-modal__phone i,
.contact-modal__email i {
  width: 20px;
  color: #254568;
  font-size: 16px;
}

.contact-modal__phone a,
.contact-modal__email a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.contact-modal__phone a:hover,
.contact-modal__email a:hover {
  color: #6a7d92;
}

.contact-modal__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.contact-modal__btn i {
  font-size: 16px;
}

.contact-modal__btn--vk:hover {
  background: #4c75a3;
  transform: translateY(-2px);
}

.contact-modal__btn--tg:hover {
  background: #2aabee;
  transform: translateY(-2px);
}

.contact-modal__btn--inst:hover {
  background: #d62976;
  transform: translateY(-2px);
}

.contact-modal__btn--save {
  background: #254568;
  width: 100%;
  justify-content: center;
  margin-top: 5px;
}

.contact-modal__btn--save:hover {
  background: #1a3550;
  transform: translateY(-2px);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .contact-chat-btn {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }
  
  .contact-chat-btn i {
    font-size: 24px;
  }
  
  .contact-modal__card {
    padding: 30px 20px 25px;
  }
  
  .contact-modal__name {
    font-size: 24px;
  }
  
  .contact-modal__btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}