/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #FBF8CC;
    /* новый фон для всего сайта */
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    /* плавный скролл */
}

ol {
    margin: 0px 0px 20px;
}

h2 {
    margin: 0px 0px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    box-sizing: border-box;
}

/* Шапка */
header {
    background: #FBF8CC;
    /* фон шапки совпадает с сайтом */
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffb400;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #ffb400;
}

/* Бургер */
.burger {
    display: none;
    /* скрыт на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация бургера при открытии */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Навигация на мобильных */
.nav {
    display: flex;
    gap: 20px;
}

/* Hero + Услуги современный блок */

/* Контейнер списка услуг */
.hero-services .services-list {
  margin-top: 20px;
}

/* Пункт услуги (аналог li) */
.hero-services .service-item {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: left;
  position: relative;
  padding-left: 30px;     /* отступ под молнию */

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

/* Молния слева — полный аналог li::before */
.hero-services .service-item::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 2px;
  color: #ffb400;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Заголовок услуги (вместо strong) */
.hero-services .service-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffb400;
  margin: 0 0 4px;
}

/* Описание услуги */
.hero-services .service-item p {
  margin: 0;
  color: #333;
}

.hero-services .service-item:nth-child(1) { animation-delay: 0.1s; }
.hero-services .service-item:nth-child(2) { animation-delay: 0.2s; }
.hero-services .service-item:nth-child(3) { animation-delay: 0.3s; }
.hero-services .service-item:nth-child(4) { animation-delay: 0.4s; }
.hero-services .service-item:nth-child(5) { animation-delay: 0.5s; }
.hero-services .service-item:nth-child(6) { animation-delay: 0.6s; }


.hero-services {
    padding: 10px 10px;
    background: #FBF8CC;
    /* фон блока совпадает с сайтом */
}

.hero-services-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.hero-text h2 {
    font-size: 1.0rem;
    margin: 25px 0 15px;
    color: #222;
}

.hero-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 25px;
}

.hero-text li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #333;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.services-list {
    margin-top: 25px;
}

.service-item {
    position: relative;
    padding-left: 34px;
    margin-bottom: 18px;
}

.service-item::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2rem;
    color: #ffb400;
}

.service-item h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #222;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.services-note {
    margin-top: 20px;
    font-weight: 500;
}

/* Стили для нумерованного списка в Hero + Услуги с маркерами-молниями */
.hero-services ol {
    list-style: none;
    /* убираем стандартные цифры */
    margin-left: 0;
    padding-left: 0;
    color: #333;
}

.hero-services ol li {
    margin-bottom: 10px;
    /* расстояние между пунктами */
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: left;
    /* выравнивание по левому краю */
    position: relative;
    padding-left: 30px;
    /* отступ под маркер */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

/* Иконка молнии слева */
.hero-services ol li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffb400;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Акцент на заголовок пункта */
.hero-services ol li strong {
    color: #ffb400;
    /* выделение цветом */
    font-weight: 600;
}

/* Анимация появления для списка */
.hero-services ol li:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-services ol li:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-services ol li:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-services ol li:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-services ol li:nth-child(5) {
    animation-delay: 1s;
}

.hero-services ol li:nth-child(6) {
    animation-delay: 1.2s;
}

.hero-services ol li:nth-child(7) {
    animation-delay: 1.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подсветка на фото (эффект «горящего света») */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at 70% 30%, rgba(255, 180, 0, 0.2), transparent 70%);
    pointer-events: none;
}

/* Анимация на фото */
.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}


/* Галерея */


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

.carousel-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.carousel-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    margin-right: 10px;
}

.slide img {
    width: 100%;
    height: 700px;
    /* желаемая высота */
    object-fit: cover;
    border-radius: 8px;
}

.slide:last-child {
    margin-right: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: #333;
}

/* Десктоп видимые слайды */
@media (min-width: 1201px) {
    .slide {
        width: calc((100% - 50px)/6);
    }
}

@media (min-width: 993px) and (max-width:1200px) {
    .slide {
        width: calc((100% - 30px)/4);
    }
}

@media (min-width: 769px) and (max-width:992px) {
    .slide {
        width: calc((100% - 20px)/3);
    }
}

/* Мобильные: 1 слайд */
@media (max-width: 768px) {
    .slide img {
        height: 500px;
        /* желаемая высота */
    }

    .carousel-wrapper {
        flex-direction: column;
    }

    .carousel-block {
        margin-bottom: 30px;
    }

    .slide {
        width: 100%;
        margin-right: 10px;
    }

    .slide:last-child {
        margin-right: 0;
    }
}


/* ===== FAQ в стиле hero-services ===== */

.faq-section {
  color: #333;
}

/* Аналог ol */
.faq-list {
  margin-left: 0;
  padding-left: 0;
}

/* Аналог li */
.faq-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: left;
  position: relative;
  padding-left: 30px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

/* Молния слева — 1 в 1 */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffb400;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Аналог strong */
.faq-item h3 {
  color: #ffb400;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

/* Текст ответа */
.faq-item p {
  margin: 0;
  color: #333;
}

/* Контакты */
footer {
    background: #FBF8CC;
    /* фон блока совпадает с сайтом */
    padding: 20px 20px;
    text-align: left;
    border-top: 1px solid #eee;
}

.social-links {
    display: flex;
    justify-content: left;
    gap: 15px;
    margin: 20px 0;
}

.muted {
    font-size: 0.9rem;
    color: #777;
}

/* Кнопки */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #f0f0f0;
}

.cta {
    padding: 12px 22px;
    border-radius: 8px;
    background: #ffb400;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    text-align: center;

    /* На мобильных */
    @media (max-width: 768px) {
        display: block;
        width: 100%;
        /* Занимает всю ширину родителя (.container) */
        box-sizing: border-box;
        padding: 16px;
        font-size: 18px;
    }
}

.cta:hover {
    background: #e5a200;
}

/* Фиксированная кнопка звонка на мобильных */
.fixed-call {
    display: none;
    /* скрыта по умолчанию */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffb400;
    color: #fff;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: background 0.3s, transform 0.2s;
}

.fixed-call:hover {
    background: #e5a200;
    transform: scale(1.05);
}

/* Анимации */
.animate-up {
    opacity: 0;
    font-size: 1.2rem;
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-width: 992px) {

    .hero-services-container {
        flex-direction: column-reverse;
        /* фото сверху, текст снизу */
        text-align: center;
    }

    .hero-text ul {
        margin-left: 0;
    }

    .hero-services ol li {
        padding-left: 25px;
        /* чуть меньше отступ на мобильных */
    }

    .hero-services ol li::before {
        left: 0;
    }

    .hero-image img {
        max-width: 100%;
        /* почти на всю ширину */
        margin: 0 5px 15px;
        /* минимальные отступы слева и справа */
        border-radius: 12px;
        /* сохраняем скругление */
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        /* показываем бургер на мобильных */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* скрываем за экраном */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #FBF8CC;
        /* Темный синий как в шапке */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        right: 0;
        /* показываем меню */
    }

    .nav a {
        font-size: 18px;
        text-decoration: none;

        padding: 12px 25px;
        transition: all 0.3s;
        border-radius: 6px;
        width: 80%;
        text-align: center;
    }

    .nav a:hover {
        color: #ffb400;
        /* Желтый при наведении */
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-5px);
    }

    /* Бургер становится белым на темном фоне */
    .burger span {
        background: #333;
    }

    /* При открытом меню бургер становится белым */
    .burger.active span {
        background: #333;
    }

    .fixed-call {
        display: block;
    }
}




/* Изменения */


/* Секция портфолио с вашим акцентным цветом #FBF8CC */
.portfolio-section {
    padding: 60px 20px;
    background: #FBF8CC;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Сетка портфолио - 2 колонки на десктопе, 1 на мобильных */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточка объекта */
.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Контейнер для изображения 3:4 (вертикальный) */
.image-container.aspect-3-4 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133.33%; /* 4:3 вертикально (4/3 = 1.3333 = 133.33%) */
    overflow: hidden;
    background: #f8f9fa;
}

.image-container.aspect-3-4 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Центрируем изображение сверху */
}

/* Слайдер внутри карточки */
.portfolio-slider {
    position: relative;
    background: #f8f9fa;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track .slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Кнопки навигации слайдера */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(251, 248, 204, 0.9);
    color: #333;
    border: 2px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: bold;
}

.slider-nav:hover {
    background: rgba(251, 248, 204, 1);
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Точки-индикаторы */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}

.slider-dots .dot.active {
    background: #FBF8CC;
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.slider-dots .dot:hover {
    background: rgba(251, 248, 204, 0.9);
}

/* Информация об объекте */
.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin: 0 0 10px 0;
    color: #222;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.location {
    color: #555;
    margin: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location::before {
    content: "📍";
    font-size: 0.9em;
}

.description {
    color: #444;
    line-height: 1.5;
    margin: 12px 0 15px;
    font-size: 0.95rem;
}

/* Теги */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: #FBF8CC;
    color: #555;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 500;
    white-space: nowrap;
}

.tag:hover {
    background: #F5F0C6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Состояние загрузки изображений */
.image-container.aspect-3-4 img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container.aspect-3-4 img.loaded {
    opacity: 1;
}

/* Лоадер для изображений */
.image-container.aspect-3-4::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FBF8CC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    opacity: 0;
}

.image-container.aspect-3-4.loading::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 10px 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px; /* Ограничиваем ширину на мобильных */
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .portfolio-info {
        padding: 15px;
    }
    
    .portfolio-info h3 {
        font-size: 1.2rem;
    }
    
    .location {
        font-size: 0.85rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1025px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}