/* ========================================
   ПСИХОЛОГ АЛЕКСАНДР САЗОНОВ — СТИЛИ
   Полностью исправленная и оптимизированная версия
   ======================================== */

/* ===== ИМПОРТ ШРИФТОВ ===== */
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

/* ===== ЦВЕТОВАЯ ПАЛИТРА ===== */
:root {
  --primary-bg: #181a1b;
  --secondary-bg: #202325;
  --accent: #24786D;
  --accent-light: #3CB3A6;
  --accent-dark: #1B4332;
  --text-primary: #F5F5F7;
  --text-secondary: #B0B3B8;
  --white: #FFFFFF;
  --section-padding: 120px;
  --section-padding-md: 80px;
  --section-padding-sm: 60px;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  color-scheme: none;
}

/* ===== БАЗОВЫЕ НАСТРОЙКИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  color-scheme: dark;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  color: var(--text-primary);
  background: var(--primary-bg)
  min-height: 100vh !important;
  overflow-x: hidden !important;
}

img {
  max-width: 100%;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
  text-decoration: none;
  outline: none;
}

a, i, span {
  display: inline-block;
  transition: all 0.3s ease-out 0s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

h2 {
  margin-bottom: 20px;
}


@media (max-width: 575px) {
  h1 { font-size: 30px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 767px) {
  p { font-size: 15px; }
}

.bg_cover {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* ===== КНОПКИ (ЕДИНЫЙ СТИЛЬ) ===== */
.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1rem;
  padding: 14px 28px;
  height: 48px;
  min-width: 0;
  width: auto;
  max-width: 98vw;
  margin: 0 auto;
  box-sizing: border-box;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.main-btn:hover {
  background: var(--accent-light);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(60,179,113,0.18);
}

.main-btn.main-btn-2 {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
}

.main-btn.main-btn-2:hover {
  background: var(--accent-light);
  color: var(--white);
  border-color: var(--accent-light);
}

@media (max-width: 575px) {
  .main-btn {
    font-size: 1rem;
    min-height: 44px;
    padding: 0 16px;
    max-width: 320px;
    width: 100%;
  }
}

/* ===== ЗАГОЛОВКИ СЕКЦИЙ ===== */
.title {
    font-size: 40px;
    line-height: 1.3;
}

.section-title .title {
  font-weight: 700;
  margin-bottom: 50px;
  /*font-size: 45px;*/
  color: var(--text-primary);
  padding-bottom: 20px;
}

@media (max-width: 767px) {
  .section-title .title { 
    font-size: 30px; 
  }
}

/* ===== ПРЕЛОАДЕР ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primary-bg);
  z-index: 99999;
  display: table;
}

.preloader .loader_34 {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.preloader .loader_34 .ytp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  margin-left: -32px;
}

.preloader .loader_34 .ytp-spinner .ytp-spinner-container {
  width: 100%;
  padding-bottom: 100%;
  top: 50%;
  left: 50%;
  margin-top: -50%;
  margin-left: -50%;
  animation: ytp-spinner-linspin 1568.23529647ms linear infinite;
}

.preloader .loader_34 .ytp-spinner .ytp-spinner-container .ytp-spinner-rotator {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: ytp-spinner-easespin 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.preloader .loader_34 .ytp-spinner-circle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ytp-spinner-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.preloader .loader_34 .ytp-spinner-left .ytp-spinner-circle {
  left: 6px;
  top: 6px;
  animation: ytp-spinner-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.preloader .loader_34 .ytp-spinner-right .ytp-spinner-circle {
  right: 6px;
  top: 6px;
  animation: ytp-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

@keyframes ytp-spinner-linspin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ytp-spinner-easespin {
  12.5% { transform: rotate(135deg); }
  25% { transform: rotate(270deg); }
  37.5% { transform: rotate(405deg); }
  50% { transform: rotate(540deg); }
  62.5% { transform: rotate(675deg); }
  75% { transform: rotate(810deg); }
  87.5% { transform: rotate(945deg); }
  100% { transform: rotate(1080deg); }
}

@keyframes ytp-spinner-left-spin {
  0% { transform: rotate(130deg); }
  50% { transform: rotate(-5deg); }
  100% { transform: rotate(130deg); }
}

@keyframes ytp-right-spin {
  0% { transform: rotate(-130deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(-130deg); }
}

/* ===== НАВИГАЦИЯ ===== */
.navigation {
  background: var(--primary-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
  transition: all 0.3s ease;
}

.navigation.sticky {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navigation .navbar {
  padding: 20px 0;
}

.navigation .navbar .navbar-brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navigation .navbar .navbar-brand svg {
  height: 40px;
  width: 54px;
  display: block;
}

.navigation .navbar .navbar-brand .ac-logo-text,
.navigation .navbar .navbar-brand .ac-logo-bar {
  fill: #fff;
}

.navigation .navbar .navbar-brand .logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  font-family: "Playfair Display", serif;
}

.navigation .navbar .navbar-brand .logo-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.navigation .navbar .navbar-toggler {
  border: none;
  padding: 0;
}

.navigation .navbar .navbar-toggler .toggler-icon {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navigation .navbar .navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navigation .navbar .navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
}

.navigation .navbar .navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform:45deg) translate(7px, -6px);
}

.navigation .navbar .navbar-nav .nav-item {
  margin: 0 8px;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navigation .navbar .navbar-nav .nav-item {
    margin: 8px 0;
  }
  .navigation .navbar .navbar-collapse {
    background: var(--primary-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
  }
}

.navigation .navbar .navbar-nav .nav-item a {
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navigation .navbar .navbar-nav .nav-item a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .navigation .navbar .navbar-nav .nav-item a::before {
    display: none;
  }
}

.navigation .navbar .navbar-nav .nav-item.active a,
.navigation .navbar .navbar-nav .nav-item a:hover {
  color: var(--accent);
  background: rgba(27, 67, 50, 0.05);
}

.navigation .navbar .navbar-nav .nav-item.active a::before,
.navigation .navbar .navbar-nav .nav-item a:hover::before {
  width: 80%;
}

/* ===== ХЕДЕР ===== */
.header-content {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  position: relative;
  overflow: hidden;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .header-content {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .header-content {
    padding: var(--section-padding-sm) 0;
  }
}

.header-content-right {
  max-width: 540px;
}

.header-content-right .sub-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 767px) {
  .header-content-right .sub-title {
    font-size: 1rem;
  }
}

.header-content-right .title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}


.header-content-right p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}



/* ===== ЛОГОТИП ===== */
.ac-logo {
  display: block;
  margin: 0 auto;
  max-width: 180px;
  height: auto;
}

@media (max-width: 991px) {
  .ac-logo {
    max-width: 120px;
  }
}

@media (max-width: 767px) {
  .ac-logo {
    max-width: 90px;
  }
}

/* ===== ФОТО В ХЕДЕРЕ ===== */
.header-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  padding: 0;
  background: none;
  max-width: 370px;
  margin-left: auto;
  margin-right: auto;
}

.header-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}

/* ===== СОЦСЕТИ В ХЕДЕРЕ ===== */
.header-social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 0;
}

.header-social .social-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  width: auto;
}

.header-social .social-list li {
  list-style: none;
  margin: 0;
}

.header-social .social-list li a,
.header-social .social-list li a i {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.header-social .social-list li a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 991px) {
  .header-social {
    margin-top: 16px;
  }
  .header-social .social-list {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .header-social {
    margin-top: 14px;
  }
  .header-social .social-list {
    gap: 12px;
  }
}

/* ===== КНОПКИ В ХЕДЕРЕ ===== */
.cta-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.cta-buttons .main-btn,
.cta-buttons .main-btn.main-btn-2 {
  min-width: 220px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(27,67,50,0.06);
  margin: 0;
}

.cta-buttons .main-btn.main-btn-2 {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.cta-buttons .main-btn.main-btn-2:hover {
  background: var(--accent-light);
  color: #fff;
}

@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .cta-buttons .main-btn,
  .cta-buttons .main-btn.main-btn-2 {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}

/* ===== ОБО МНЕ ===== */
.about-area {
  background: var(--secondary-bg);
  border-radius: 20px;
  padding: 60px 40px;
}

.about-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 67, 50, 0.2), transparent);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .about-area {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .about-area {
    padding: var(--section-padding-sm) 0;
  }
}

.about-content .about-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
  max-width: 620px;
}

.about-content p {
  max-width: 620px;
}

.about-content ul {
  margin-top: 32px;
}

.about-content ul li {
  width: 50%;
  float: left;
  margin-bottom: 20px;
}

@media only screen and (min-width: 992px) and (max-width: 1200px), (max-width: 767px) {
  .about-content ul li {
    width: 100%;
    float: none;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  .about-content ul li {
    width: 50%;
    float: left;
  }
}

.single-info {
  background: rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 12px;
}

.about-content .single-info {
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(27, 67, 50, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about-content .single-info:hover {
  background: rgba(27, 67, 50, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.about-content .single-info .info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.about-content .single-info .info-icon i {
  color: var(--white);
  font-size: 1.25rem;
}

.about-content .single-info .info-text {
  flex: 1;
}

.about-content .single-info .info-text p {
  margin: 0;
  font-size: 1rem;
}

.about-content .single-info .info-text p span {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* ===== УСЛУГИ ===== */
.services-area {
  padding: var(--section-padding) 0;
  background: var(--secondary-bg);
  position: relative;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .services-area {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .services-area {
    padding: var(--section-padding-sm) 0;
  }
}

.single-service {
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: 0.25s ease;
  border: 1px solid rgba(27, 67, 50, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255,255,255,0.03);
}

.single-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.single-service:hover::before {
  transform: scaleX(1);
}

@media (max-width: 767px) {
  .single-service {
    padding: 32px 24px;
  }
}

.single-service .service-icon {
  width: 88px;
  height: 88px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 2px 8px rgba(27,67,50,0.08);
}

.single-service .service-icon i {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-service:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.single-service .service-content {
  position: relative;
  z-index: 1;
}

.single-service .service-content .service-title,
.single-service .service-content .service-title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-service .service-content .service-title a:hover {
  color: var(--accent);
}

.single-service .service-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.single-service:hover {
  transform: translateY(-4px);
  ox-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ===== CALL TO ACTION ===== */
.call-to-action {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  position: relative;
  overflow: hidden;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .call-to-action {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .call-to-action {
    padding: var(--section-padding-sm) 0;
  }
}

.call-action-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.call-action-content .action-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .call-action-content .action-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

.call-action-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.call-action-content ul {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.call-action-content ul li {
  list-style: none;
}

.call-action-content ul li .main-btn {
  background: var(--white);
  color: var(--accent);
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.call-action-content ul li .main-btn:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== ДИПЛОМЫ ===== */
.work-area {
  padding: var(--section-padding) 0;
  background: var(--secondary-bg);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .work-area {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .work-area {
    padding: var(--section-padding-sm) 0;
  }
}

.single-work {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-work .work-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-work .work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.9) 0%, rgba(74, 124, 89, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.single-work .work-overlay .work-content {
  text-align: center;
  color: var(--white);
  padding: 24px;
}

.single-work .work-overlay .work-content .work-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.single-work .work-overlay .work-content ul {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.single-work .work-overlay .work-content ul::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 2px;
  background: var(--white);
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.single-work .work-overlay .work-content ul li {
  list-style: none;
}

.single-work .work-overlay .work-content ul li a {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.single-work .work-overlay .work-content ul li a:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: scale(1.1);
}

.single-work .work-overlay .work-content ul li:nth-of-type(1) {
  animation: slideInLeft 0.6s ease;
}

.single-work .work-overlay .work-content ul li:nth-of-type(2) {
  animation: slideInRight 0.6s ease 0.1s both;
}

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.single-work:hover .work-overlay {
  opacity: 1;
}

.single-work:hover .work-overlay .work-content .work-title,
.single-work:hover .work-overlay .work-content ul {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.single-work:hover .work-image img {
  transform: scale(1.1);
}

/* ===== БЛОГ ===== */
.blog-area {
  padding: var(--section-padding) 0;
  background: var(--secondary-bg);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .blog-area {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .blog-area {
    padding: var(--section-padding-sm) 0;
  }
}

.single-blog {
  background: var(--white) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(27, 67, 50, 0.1);
}

.single-blog .blog-image {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin-left: auto;
  margin-right: auto;
  background: #111;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-blog .blog-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background: #111;
  display: block;
  transition: transform 0.3s ease;
}

@media (max-width: 991px) {
  .single-blog .blog-image {
    max-width: 320px;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 767px) {
  .single-blog .blog-image {
    max-width: 280px;
    aspect-ratio: 9 / 16;
  }
}

.single-blog .blog-content {
  padding: 32px;
  position: relative;
}

@media (max-width: 767px) {
  .single-blog .blog-content {
    padding: 24px;
  }
}

.single-blog .blog-content .blog-title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .single-blog .blog-content .blog-title a {
    font-size: 1.125rem;
  }
}

.single-blog .blog-content span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.single-blog:hover .blog-image video {
  transform: scale(1.05);
}

.single-blog:hover .blog-content {
  background: var(--white);
}

.single-blog:hover .blog-content .blog-title a,
.single-blog:hover .blog-content span {
  color: var(--accent);
}

.single-blog:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

/* ===== ЗАГОЛОВОК БЛОГА ===== */
.blog-header {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent);
  text-align: center;
  padding: 32px 24px 16px 24px;
  margin: 0 auto;
  max-width: 600px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.blog-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  padding-bottom: 32px;
  margin: 0 auto;
  max-width: 6 line-height: 1.6;
}

/* ===== КОНТАКТЫ ===== */
.contact-area {
  padding: var(--section-padding) 0;
  background: var(--secondary-bg);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .contact-area {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .contact-area {
    padding: var(--section-padding-sm) 0;
  }
}

.contact-box {
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(27, 67, 50, 0.1);
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media only screen and (min-width: 992px) and (max-width: 1200px), (max-width: 767px) {
  .contact-box {
    padding: 32px 24px;
  }
}

.contact-box .contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.contact-box .contact-icon i {
  color: var(--white);
  font-size: 2rem;
}

.contact-box .contact-content {
  position: relative;
}

.contact-box .contact-content .contact-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-box .contact-content p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-box .contact-content p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-box .contact-content p a:hover {
  color: var(--accent-light);
}

.contact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.contact-box:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== ФУТЕР ===== */
.footer-widget {
  padding: var(--section-padding) 0;
  background: #111213;
  color: var(--text-secondary);
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .footer-widget {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 767px) {
  .footer-widget {
    padding: var(--section-padding-sm) 0;
  }
}

.footer-content {
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.footer-content ul {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-content ul li {
  list-style: none;
}

.footer-content ul li a,
.footer-content ul li a i {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

@media (max-width: 767px) {
  .footer-content ul li {
    margin: 0 8px;
  }
  .footer-content ul li a,
  .footer-content ul li a i {
    width: 40px;
    height: 40px;
  }
}

.footer-content ul li a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-copyright {
  background: #181A1B;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright .copyright-text p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 767px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .header-content-right .title {
    font-size: 34px;
  }
  
  .section-title .title {
    font-size: clamp1.3rem, 5vw, 2.5rem);
    text-align: center;
  }
  
  .single-service {
    margin-bottom: 24px;
  }
  
  .contact-box {
    margin-bottom: 24px;
  }
  
  .blog-more {
    margin-top: 40px !important;
  }
}

/* SEO ссылки — невидимы, но корректны */
.seo-links {
    font-size: 0;
    line-height: 0;
    height: 0;
    overflow: hidden;
}
.seo-links a {
    font-size: 0;
}

.hero-photo {
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

.navbar-nav .nav-link {
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 8px 12px;
}

.footer-area {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== VIDEO IMPROVEMENTS ===== */
.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 12px;
    margin-bottom: 0;
}

/* Для мобильных — чтобы видео не выходило за границы */
@media (max-width: 767px) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    .single-blog .blog-image {
        max-width: 100%;
    }
}

