/* Глобальные стили */
:root {
    --primary: #2E86DE;
    --primary-dark: #1B6BC1;
    --secondary: #FF9F43;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --gray: #95A5A6;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 10px;
	font-size:small;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--secondary);
}

.btn-primary:hover {
    background: #e67e22;
}

.btn-call {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Шапка */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    margin-right: auto;
    padding: 10px 0;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    min-width: 300px;
    justify-content: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-contacts {
    margin-left: auto;
    padding-left: 20px;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

/* Hero-секция */
.hero {
    background:  url('../images/office.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 20px 100px;
}



.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
	text-shadow: 1px 1px 2px black;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px black;
}

/* Услуги */
.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

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

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Форма заказа */
.order {
    padding: 80px 0;
    background: var(--primary);
    color: white;
}

.order h2 {
    text-align: center;
    margin-bottom: 40px;
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Подвал */
.footer {
    background: #000;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Подвал */
.footer-links a {
    color: white;
}

/* Подвал */
.footer-social a {
    color: white;
}


/* Адаптация */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
        padding: 40px 20px;
        z-index: 1000;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ... (предыдущие стили остаются без изменений) ... */

/* Стили для слайдера отзывов */
.reviews-container {
    position: relative;
}

.review-prev,
.review-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(46, 134, 222, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.review-prev {
    left: 10px;
}

.review-next {
    right: 10px;
}

@media (max-width: 768px) {
    .review {
        display: none;
    }
    
    .review:first-child {
        display: block;
    }
    
    .review-prev,
    .review-next {
        display: flex;
    }
}

/* Карта */
.map {
    padding: 60px 0;
    background: white;
}

.map h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.map-contacts {
    text-align: center;
    font-size: 1.1rem;
}

.map-contacts p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-contacts i {
    color: var(--primary);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .review {
        flex-direction: column;
        text-align: center;
    }
}

/* Основные стили остаются без изменений */

/* Стили для отзывов */
.reviews {
    padding: 80px 0;
    background-color: #f9f9f9;
	text-align: center;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.review {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.reviews h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.review-author h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
}

.btn-outline {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Стили для карты */
.contacts {
    padding: 80px 0;
	text-align: center;
}

.contacts h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 3px;
}

/* Адаптация */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Основные стили */
:root {
    --primary: #2E86DE;
    --primary-dark: #1B6BC1;
    --secondary: #2E86DE;
    --dark: #2C3E50;
    --light: #ECF0F1;
    --gray: #95A5A6;
}

/* Блок благодарственных писем */
.letters {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.letters h2 {
    margin-bottom: 40px;
    color: #2C3E50;
}

.letters h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.letters-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.letters-slider {
    position: relative;
    overflow: hidden;
}

.letters-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
}

.letter-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Кнопки слайдера */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(46, 134, 222, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(46, 134, 222, 1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .letters-track {
        gap: 15px;
    }
    
    .letter-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 280px;
        height: auto;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .letter-item {
        flex: 0 0 100%;
        height: auto;
    }
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}


/* Скрываем стрелки, если они случайно появились на первом экране */
.hero .slider-prev,
.hero .slider-next {
  display: none !important;
}

/* Правим мобильное меню */
@media (max-width: 768px) {
  .nav {
    position: fixed !important;
    top: 70px;
    left: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    background-color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .nav.active {
    display: flex !important;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0 20px 0 5px;
    width: 100%;
    text-align: right;
  }

  .nav-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
  }

  .nav-list a {
    display: block;
    width: 100%;
    font-size: 18px;
    color: #333;
    text-decoration: none;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
  }

  .burger-menu span {
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }
}

/* Показываем стрелки только внутри .letters-slider */
.letters-slider .slider-prev,
.letters-slider .slider-next {
  display: flex !important;
}

/* Прячем все глобальные стрелки вне .letters-slider */
.slider-prev,
.slider-next {
  display: none !important;
}


.certificates {
  padding: 60px 0;
  text-align: center;
  background-color: #f9f9f9;
}

.certificates .letter-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

.certificates h2 {
    margin-bottom: 40px;
    color: #2C3E50;
}

.certificates h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.advantages {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.advantages h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}


.advantages h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

.advantage-card {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.advantage-card i {
  font-size: 36px;
  color: #2E86DE;
  margin-bottom: 15px;
}

.advantage-card p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}