/* Базовые стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F4E1; /* Основной светлый фон */
    color: #4A4A4A; /* Цвет текста */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.button {
    display: inline-block;
    background-color: #FF7F50;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: #FF6347;
}

/* Шапка (Header) */
header {
    background-color: #F5F5DC;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4A4A4A;
}
.logo a {
    /* Здесь ваши стили для текста */
    text-decoration: none; /* Убирает подчеркивание у ссылки */
    color: inherit; /* Наследует цвет от родительского элемента, если это необходимо */
    /* И другие стили, которые вы хотите применить */
}


/* Главный экран */
.hero {
    background-image: url('/images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    z-index: 1;
}
.hero h1 {
    font-size: 48px;
    margin: 0;
}
.hero p {
    font-size: 24px;
}
.hero .button {
    margin-top: 20px;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #FF7F50;
    margin: 10px auto 0;
}

/* Секции */
.services, .about, .contact, .advantages, .testimonials, .faq {
    padding: 60px 0;
}
.advantages, .testimonials {
    background-color: #FFF8E1;
}
.faq {
    background-color: #F8F4E1;
}

/* Сетка услуг */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.service-card {
    background-color: #F5F5DC;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}
.service-card h3 {
    color: #FF7F50;
}
.service-image-container {
    width: 300px;
    flex-shrink: 0;
}
.service-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.service-text-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-text-container h3,
.service-text-container p {
    text-align: left;
}
.service-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dcdcdc;
    text-align: left;
}
.service-details p {
    margin: 10px 0;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-details strong {
    color: #4A4A4A;
    font-weight: bold;
}
.service-details p {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Секция: Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}
.advantage-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.advantage-icon {
    font-size: 3em;
    margin-bottom: 10px;
    display: block;
}
.advantage-icon i {
    color: #FF7F50;
}
.advantage-card h4 {
    color: #4A4A4A;
    margin-top: 0;
}
.advantage-card p {
    margin-top: 5px;
}

/* Секция "Обо мне" */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-content img {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.about-text {
    text-align: left;
}

/* Секция "Отзывы" */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}
.client-name {
    font-weight: bold;
    color: #4A4A4A;
    margin-bottom: 15px;
    display: block;
}
.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Секция "FAQ" */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.faq-question {
    color: #4A4A4A;
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
}
.faq-answer {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Контакты */
.contact-content-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}
.contact-details {
    text-align: left;
}
.contact-details p {
    font-size: 18px;
    line-height: 1.6;
    margin: 5px 0;
}
.contact-details strong {
    color: #4A4A4A;
}
.contact-details a {
    color: #FF7F50;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-details a:hover {
    color: #FF6347;
}
.map-container {
    width: 100%;
    max-width: 600px;
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #F5F5DC;
    margin-top: 40px;
}
/* Стили для изображений сертификатов */
/* Этот блок должен находиться вне @media-запроса, чтобы работать на всех экранах */
.certificate-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
    .certificates-container {
        margin-top: 60px;
        text-align: center;
    }


/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 18px;
    }
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    .service-image-container {
        width: 100%;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-content img {
        width: 100%;
    }
    .about-content .button {
        align-self: center;
    }
    .contact-content-block {
        flex-direction: column;
        align-items: center;
    }
    .map-container {
        max-width: 100%;
    }

    .certificates-container {
        margin-top: 60px;
        text-align: center;
    }
    .certificates-container h3 {
        margin-bottom: 30px;
    }
    .certificates-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .certificate-image {
        max-width: 350px;
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 48px !important;
    height: auto;
    max-width: 48px;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #4A4A4A;
}
.logo a{
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo .site-logo{
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .logo-img {
        width: 36px !important;
        max-width: 36px;
    }
    .logo-text {
        font-size: 18px;
    }
}

/* Выравниваем логотип + текст в шапке */
header .logo {
  display: flex !important;
  align-items: center !important;
}

header .logo > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1 !important;
}

/* убирает "проседание" картинки вниз (baseline) */
header .logo > a > img {
  display: block !important;
}

/* чтобы иконка не налезала на текст */
header .header-contact { 
  flex-shrink: 0; 
  margin-left: 12px;
}

header .logo { 
  min-width: 0; 
}

/* мобилка: резервируем место справа под WhatsApp */
@media (max-width: 768px) {
  header {
    padding: 12px 16px;   /* чуть компактнее */
    gap: 12px;
  }
}

  header .logo {
    max-width: calc(100% - 52px); /* 52px = место под иконку */
  }

  header .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .whatsapp-icon {
    font-size: 28px; /* по желанию */
  }
}
* ===== ИДЕАЛЬНОЕ ВЫРАВНИВАНИЕ ЛОГОТИП + ТЕКСТ (ПК и мобилка) ===== */

header {
    display: flex;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo a {
    display: flex;              /* КЛЮЧЕВОЕ */
    align-items: center;        /* КЛЮЧЕВОЕ */
    gap: 10px;
    line-height: 1;             /* убираем влияние шрифта */
}

header .logo img {
    display: block;             /* убираем baseline у img */
}

/* Бренд в шапке: ровное выравнивание на ПК и мобилке */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.site-brand__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.site-brand__text {
  font-size: 24px;
  font-weight: bold;
  color: #4A4A4A;
}

/* ===== CONTACT BUTTONS (PHONE / WHATSAPP / TELEGRAM) ===== */
.header-contact{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

.contact-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:50%;
  color:#fff;
  font-size:26px;
  text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;

  box-shadow: 0 6px 16px rgba(0,0,0,.18),
              inset 0 1px 3px rgba(255,255,255,.25);
}

.contact-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 60%);
  opacity:.65;
  transition:opacity .25s ease;
  pointer-events:none;
}

.contact-btn:hover{
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.25),
              inset 0 1px 4px rgba(255,255,255,.35);
  filter:saturate(1.05);
}

.contact-btn:hover::after{ opacity:.9; }
.contact-btn:active{ transform: scale(.96); }

/* Цвета */
.contact-btn.phone{
  background: linear-gradient(135deg, #FF7F50, #FF6347);
}
.contact-btn.whatsapp{
  background: linear-gradient(135deg, #25D366, #1ebe5d);
}
.contact-btn.telegram{
  background: linear-gradient(135deg, #2AABEE, #0088cc);
}

/* Мобилка — чуть компактнее */
@media (max-width:768px){
  .header-contact{ gap:12px; }
  .contact-btn{ width:48px; height:48px; font-size:22px; }
}

header .header-contact .contact-btn {
    width: 34px !important;
    height: 34px !important;
}

header .header-contact .contact-btn i {
    font-size: 20px !important;
}

@media (max-width: 768px) {

    header .header-contact .contact-btn {
        width: 24px !important;
        height: 24px !important;
    }

    header .header-contact .contact-btn i {
        font-size: 10px !important;
    }

}