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

/* Body */
body {
    font-family: 'Lato', sans-serif;
    background-color: #040404;
    color: #fff;
    line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}


/* Header / Navigation */
header {
    padding: 12px 20px; /* 👈 базовое значение — для мобильных */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(04, 04, 04, 0.3); /* 👈 прозрачный тёмный фон */
    backdrop-filter: blur(10px); /* 👈 эффект размытия за навигацией */
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: cover;
}

.brand-name {
    font-family: 'Lato', sans-serif; /* 👈 или любой другой элегантный шрифт */
    font-weight: 300;
    font-size: 22px;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav li a {
    font-weight: 300;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, font-size 0.3s ease, font-weight 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: inline-block;

}

nav li a:hover {
    color: #f5a425;
    font-weight: 400;
    font-size: 19px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    header {
        padding-left: 16px;
        padding-right: 16px;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    nav ul {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        padding-left: 0;
    }

    nav li a {
        font-size: 14px;
        font-weight: 400;
        padding: 8px 0;
        display: block;
        text-align: left;
    }

    nav li a:hover {
        font-size: 16px;
    }
}


/* Hero Section */
.hero {
    width: calc(100% - 60px);   /* 👈 оставляем 30px отступ с каждой стороны */
    max-width: 1600px;          /* 👈 но не больше 1200px */
    margin: 20px auto;
    padding: 20px 40px;
    background-clip: padding-box;  /* 👈 ограничивает фон по границам с закруглением */
    border-radius: 30px;
    overflow: hidden;              /* 👈 обрезает фон за скруглением */

    text-align: center;
    box-sizing: border-box;

    background-image: url("/static/images/BG/BG1.png"); /* 👈 путь к файлу */
    background-size: cover;      /* Растянуть по блоку */
    background-position: center; /* Центрировать */
    background-repeat: no-repeat;

}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        width: calc(100% - 40px);              /* 👈 на мобилках убираем calc() */
        padding: 60px 16px;      /* 👈 внутренние отступы */
        margin: 40px auto;       /* 👈 только вертикальные отступы */
        border-radius: 20px;
    }
}

.hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;

}

.hero h2 {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 30px;
    letter-spacing: 5px; /* 👈 расстояние между буквами */
}

.hero p {
    font-size: 20px;
    font-weight: 300;
}

a.open-client-modal {
    margin-top: 36px;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 19px;
    transition: color 0.4s ease, font-size 0.4s ease, font-weight 0.4s ease;
}

a.open-client-modal:hover {
  color: #f5a425;         /* новый цвет при наведении */
  font-weight: 700;       /* толще */
  font-size: 21px;        /* чуть больше */
}


/* Products section */
.products {
    width: calc(100% - 60px);
    max-width: 1400px;
    margin: 40px auto;
    padding: 60px 60px;
    background-clip: padding-box;
    border-radius: 30px;
    overflow: hidden;
    box-sizing: border-box;

    background-image: url("/static/images/BG/BG2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    gap: 30px;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Каждая колонка */
.products-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Адаптив */
@media (max-width: 768px) {
  .products {
        width: calc(100% - 40px);               /* 👈 на мобилках убираем calc() */
        padding: 60px 16px;                     /* 👈 внутренние отступы */
        margin: 40px auto;                      /* 👈 только вертикальные отступы */
        border-radius: 20px;
        flex-direction: column;
  }
}

/* Текст */
.products-text {
  text-align: center;
}

.products-text h1 {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 0px;
    letter-spacing: 5px; /* 👈 расстояние между буквами */
}

.products-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card3 h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85); /* чуть светлее, если хочешь */
}

.card3 p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.products-text p {
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

/* Карточки */
.product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 0 0 transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

/* Верхняя часть — изображение */
.card-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 1.915887 / 1; /* Пропорции изображения (1640 / 856) */
}

/* Контент под изображением */
.card-content {
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.5); /* если нужно, можно убрать */
  backdrop-filter: blur(4px);          /* если нужно, можно убрать */
}

/* Только для card3 сохраняем старую структуру */
.card3 {
  padding: 24px;

}

/* THE BLOG */
.blog-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.blog-title {
    text-align: center;
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: 5px; /* 👈 расстояние между буквами */
    color: white;
}

.blog-section h1 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.blog-section p {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.85);
}

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

.blog-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 0 0 transparent;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.blog-image {
    width: 100%;
    padding-top: 52.2%; /* Пропорция 1.915887:1 (856/1640 ≈ 0.522) */
    background-size: cover;
    background-position: center;
}

.blog-card .blog-content {
    padding: 20px;
}

.blog-card .blog-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    font-size: 20px;

}

.blog-card .blog-content p {
    font-size: 16px;
    font-weight: 400;
    text-align: left !important; /* 👈 перебиваем */
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0 !important; /* 👈 убираем автоцентрирование */
    line-height: 1.5;
    max-width: 100% !important; /* чтобы не ограничивался 700px */
}

.blog-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2); /* 0.1 = 10% непрозрачности */
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
}

.load-more-btn:hover {
    background-color: #f5a425;
    color: white;
    transform: scale(1.10);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15); /* такая же тень, как у карточек */
}

/* Модальное окно — фон */
.post-modal {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85); /* затемнение */
    overflow-y: auto;
}

/* Контент внутри модалки */
.post-modal-content {
    background-color: #121212;
    color: white;
    max-width: 1000px;
    margin: 5vh auto;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(250, 250, 250, 0.3);
}

/* Кнопка закрытия */
.close-modal {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Стили текста внутри */
.modal-intro h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 10px;
  color: white;
  text-align: center;
}

.modal-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #d1d5db; /* светло-серый */
  margin-bottom: 10px;
  text-align: center;
}

.modal-intro .open-client-modal {
    margin: 0px auto 30px auto;   /* ⬅ Центрирование + отступ сверху и снизу */
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 19px;
    transition: color 0.4s ease, font-size 0.4s ease, font-weight 0.4s ease;
    text-align: center;
}

.modal-intro .open-client-modal:hover {
    color: #f5a425;
    font-weight: 700;
    font-size: 21px;
}

.modal-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}

.modal-html-content p {
    line-height: 1.6;
    margin-bottom: 1em;
}

.modal-html-content img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}


.modal-products {
    background-image: url("/static/images/BG/BG2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 120px;
    border-radius: 30px;
    margin-top: 60px;
}



/* Адаптив */
@media (max-width: 768px) {
  .modal-products {
        width: calc(100% - 40px);               /* 👈 на мобилках убираем calc() */
        padding: 60px 16px;                     /* 👈 внутренние отступы */
        margin: 40px auto;                      /* 👈 только вертикальные отступы */
        border-radius: 20px;
        flex-direction: column;
  }
}

.modal-products .products-text {
    text-align: center;
    margin-bottom: 40px;
}

.modal-products .products-text h1 {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 0;
    letter-spacing: 5px;
    color: white;
}

.modal-products .products-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.modal-products .products-text p {
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

.modal-products .products-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-products .product-card-link {
    text-decoration: none;
    color: inherit;
}

.modal-products .product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.modal-products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.modal-products .card-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1.91 / 1;
}

.modal-products .card-content {
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-products .card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-products .card-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.modal-products .card3 {
    padding: 24px;
}

/* 📸 Ограничения для изображений внутри контента статьи */
.modal-html-content figure.image {
    max-width: 100% !important;
    margin: 1rem auto;
    text-align: center;
}

.modal-html-content figure.image img,
.modal-html-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block;
    margin: 1rem auto;
    object-fit: contain;
}






/* ABOUT */
.about-section {
    width: calc(100% - 60px);   /* 👈 оставляем 30px отступ с каждой стороны */
    max-width: 1600px;          /* 👈 но не больше 1200px */
    margin: 20px auto;
    padding: 20px 40px;
    background-clip: padding-box;  /* 👈 ограничивает фон по границам с закруглением */
    border-radius: 30px;
    overflow: hidden;              /* 👈 обрезает фон за скруглением */

    text-align: center;
    box-sizing: border-box;

    background-image: url("/static/images/BG/BG1.png"); /* 👈 путь к файлу */
    background-size: cover;      /* Растянуть по блоку */
    background-position: center; /* Центрировать */
    background-repeat: no-repeat;

}

    /* Адаптивность */
    @media (max-width: 768px) {
    .hero {
        width: calc(100% - 40px);              /* 👈 на мобилках убираем calc() */
        padding: 60px 16px;      /* 👈 внутренние отступы */
        margin: 40px auto;       /* 👈 только вертикальные отступы */
        border-radius: 20px;
        }
}

.about-section h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 10px;
    letter-spacing: 5px; /* 👈 расстояние между буквами */
    color: white;
}

.about-section h1 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.about-section h3 {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.85);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-left img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
}

.about-socials {
  display: flex;
  gap: 16px;
  font-size: 22px;
}

.about-socials a {
  color: white;
  transition: transform 0.2s ease, color 0.2s ease;
}

.about-socials a:hover {
  color: #f5a425;
  transform: scale(1.2);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15); /* такая же тень, как у карточек */
}

.about-right {
  max-width: 600px;
}

.about-right h3 {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.about-right p {
    text-align: left;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-lower {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 100px;
  gap: 80px;
}

.about-box {
  flex: 1 1 45%;
  color: white;
}

.about-box h3 {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.about-box p {
    text-align: left;
    font-size: 17px;
    line-height: 1.6;
}

.about-box.left .about-image {
  width: 80px;              /* или 100% / auto, в зависимости от нужного размера */
  height: 80px;
  margin-bottom: 5px;      /* отступ под картинкой */
  display: block;
}

.sub-note {
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}

/* Адаптив для мобилки */
@media (max-width: 768px) {
  .about-lower {
    flex-direction: column;
  }

  .about-box {
    flex: 1 1 100%;
  }

  .about-box h3 {
    text-align: center;
  }

  .about-box p {
    text-align: center;
  }
}


/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    background: #040404;
    margin-top: 60px;
}

/* Модалка для регистрации клиента */
.client-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.client-modal-content {
    background-color: #1f1f1f;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    color: white;
    position: relative;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.client-modal-content input,
.client-modal-content button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

.client-modal-content button {
    background-color: #f5a425;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.client-modal-content button:hover {
    background-color: #ffc960;
}

.close-client-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
}





