/* ====== Цвета / базовые переменные (тёмно-серый, с отливом) ====== */
:root {
    --bg-top: #303748;
    --bg-bottom: #303748;
    --panel: rgba(114, 122, 130, 0.92);
    --muted: #a9afb6;
    --text: #eef1f4;
    --accent: #ffd84c;
    --card-shadow: 0 18px 50px rgba(2, 6, 10, 0.65);
    --soft-shadow: 0 10px 30px rgba(2, 6, 10, 0.55);
    --glass: rgba(255, 255, 255, 0.03);
}

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

html,
body {
    height: 100%
}

body {
    font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle vignette / sheen */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 255, 255, 0.02), transparent 12%),
        radial-gradient(1000px 500px at 90% 90%, rgba(255, 255, 255, 0.01), transparent 12%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header ===== */
.header-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1200
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1200;
}

.logo a {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 20px
}

.logo a:hover {
    color: var(--accent);
    transform: translateY(-1px)
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px
}

nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    align-items: center;
    margin: 0
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all .18s;
    font-size: 15px
}

nav a:hover {
    background: rgba(255, 216, 76, 0.06);
    color: var(--accent)
}

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

.phone {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all .18s
}

.socials a svg {
    width: 18px;
    height: 18px;
    fill: var(--text)
}

.socials a:hover {
    background: rgba(255, 216, 76, 0.12);
    border-color: rgba(255, 216, 76, 0.28)
}

/* burger (mobile) */
.burger {
    display: none;
    width: 44px;
    height: 36px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: relative
}

.burger span::after,
.burger span::before {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px
}

.burger span::before {
    top: -6px
}

.burger span::after {
    top: 6px
}

/* mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    right: 18px;
    background: linear-gradient(180deg, #0d0e10, #0b0c0d);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--card-shadow);
    z-index: 1300
}

.mobile-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px
}

.mobile-nav a:hover {
    background: rgba(255, 216, 76, 0.04);
    color: var(--accent)
}

/* ===== HERO (banner) ===== */
.hero {
    margin-top: 30px;
    margin-left: 28px;
    margin-right: 28px;
    height: 70vh;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.06));
}

.bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform .8s ease;
    /* local generated banner first, fallback unsplash */
    background-image: url('../image/banner.png');
    filter: contrast(1.03) saturate(0.98) brightness(0.92);
    transform-origin: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55))
}

.hero .content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    text-align: left;
    padding: 40px 30px
}

.hero h1 {
    font-size: 30px;
    line-height: 1.02;
    max-width: 900px;
    margin: 0 12px;
    color: var(--text);
    font-weight: 900;
    letter-spacing: -0.5px
}

.hero p {
    color: var(--muted);
    margin-top: 20px;
    font-size: 16px;
    margin-left: 12px;
}

/* premium glow on heading */
.hero h1 {
    position: relative;
}

.hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 140px;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 216, 76, 0.2));
    filter: blur(6px);
    opacity: .9
}

.hero-call-btn:active {
    transform: scale(0.97);
}

/* ===== Section title effects ===== */
.section-title {
    text-align: center;
    margin: 30px 0 55px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 60%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 216, 76, 0.08));
    box-shadow: 0 8px 30px rgba(255, 216, 76, 0.06)
}

/* reveal effect */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: all .8s cubic-bezier(.2, .9, .3, 1)
}

.fade-up.show {
    opacity: 1;
    transform: none
}

/* ===== WHY ===== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 20px;
}

.why-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--soft-shadow);
    transition: transform .25s, box-shadow .25s
}

.why-card h3 {
    margin-bottom: 8px;
    color: var(--text)
}

.why-card p {
    color: var(--muted)
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65)
}

/* ===== SERVICES ===== */
.service-block {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 36px 24px;
    padding: 28px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    box-shadow: var(--soft-shadow);
    transition: transform .25s
}

.service-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6)
}

.service-block:nth-child(even) {
    flex-direction: row-reverse
}

.service-block .img {
    flex: 0 0 420px;
    max-width: 420px;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #0b0b0b, #141414);
    display: flex;
    align-items: center;
    justify-content: center
}

.service-block .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.service-block .text {
    flex: 1;
    padding: 8px
}

.service-block .text h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px
}

.service-block .text p {
    color: var(--muted);
    text-align: left
}

/* ===== TARIFFS: premium cards with tilt and shine ===== */
.tariffs {
    max-width: 1200px;
    margin: 28px auto;
    padding: 18px
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

/* base card */
.tariff {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.06));
    border-radius: 14px;
    padding: 14px;
    overflow: visible;
    transform-style: preserve-3d;
    transition: transform .28s ease, box-shadow .28s ease;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* floating border (blurred gradient) */
.tariff::before {
    content: '';
    position: absolute;
    inset: -1.6px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 216, 76, 0.14), rgba(255, 255, 255, 0.02));
    filter: blur(8px);
    z-index: 0;
    opacity: 0.95;
    pointer-events: none;
}

/* inner content layered above border */
.tariff>* {
    position: relative;
    z-index: 2
}

/* media box */
.tariff .media {
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #0b0b0b
}

.tariff .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* title + price */
.tariff h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text)
}

.tariff p {
    color: var(--muted);
    margin-bottom: 10px
}

.tariff .price {
    font-weight: 800;
    color: var(--accent);
    font-size: 20px
}

/* shine effect (animated) */
.tariff .shine {
    position: absolute;
    left: -60%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    transform: skewX(-18deg);
    transition: opacity .3s;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.tariff:hover .shine {
    opacity: 1;
    animation: sweep 0.9s linear;
}

/* tilt on hover small lift */
.tariff:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

/* sweep animation */
@keyframes sweep {
    from {
        left: -60%
    }

    to {
        left: 140%
    }
}

/* ===== TESTIMONIALS ===== */
.testimonials-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.05));
    border-radius: 12px;
    padding: 28px;
    max-width: 1200px;
    margin: 24px auto;
    box-shadow: var(--soft-shadow)
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 18px
}

.testimonial {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(0, 0, 0, 0.04));
    padding: 18px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    transition: transform .2s
}

.testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: block
}

/* ===== Footer ===== */
footer {
    margin-top: 36px;
    background: transparent;
    padding: 28px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--muted)
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap
}

.footer-left {
    flex: 1 1 320px
}

.footer-contacts {
    flex: 0 1 260px;
    text-align: right
}

.footer-contacts .footer-phone {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px
}

.header-warning {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: red;
    /* ТЕКСТ КРАСНЫЙ */
    padding: 6px 0;
    background: none;
    /* БЕЗ ФОНА */
    margin-bottom: 5px;
    /* Чтоб отделить от меню */
}

.header-warning {
    transition: opacity .45s ease, transform .45s ease;
}

.header-warning.hide {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
}



/* скрываем только предупреждение */
.header-warning {
    transition: transform .45s ease, opacity .45s ease;
}

.header-warning.hide {
    transform: translateY(-100%);
    opacity: 0;
}






.header-warning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    transition: transform .45s ease, opacity .45s ease;
}

.header-warning.hide {
    transform: translateY(-100%);
    opacity: 0;
}





.hero-call-btn {
    position: absolute;
    left: 50%;
    bottom: 40px;
    /* расстояние от низа баннера — можешь менять */
    transform: translateX(-50%);

    display: inline-block;
    padding: 14px 28px;
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.3);
    z-index: 5;
    /* чтобы была поверх всего */
}

.hero-call-btn:hover {
    background: #ffd738;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
    transform: translateX(-50%) translateY(-2px);
}

.hero-call-btn:active {
    transform: translateX(-50%) scale(0.97);
}


.tariff-call-btn {
    display: block;
    margin: 20px auto 0;
    width: fit-content;

    padding: 14px 28px;
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.3);
}

.tariff-call-btn:hover {
    background: #ffd738;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
    transform: translateY(-2px);
}

.tariff-call-btn:active {
    transform: scale(0.97);
}





/* ARTICLES: блок під відгуками */
.articles-section {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.articles-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text);
}

.article {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  color: var(--muted);
}

/* внутрішній контейнер щоб контролювати overflow */
.article-inner {
  overflow: hidden;
}

/* базовий текст абзацу */
.article-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
  transition: max-height 0.45s ease;
}

/* collapsed — коли згорнуто, обмежуємо висоту цілої статті за допомогою max-height */
.article .article-text.collapsed,
.article .article-text.collapsed + .article-text {
  /* ці селектори потрібні, якщо абзаців декілька —
     на практиці ми будемо керувати класом .collapsed у .article-inner через JS */
}

/* Клас, який застосовуємо до .article-inner коли розгорнуто */
.article-open .article-text {
  max-height: 1000px; /* велике значення щоб "розвернути" всі абзаци */
}

/* Клас коли згорнуто: обмежуємо видимість усього вмісту */
.article .article-inner:not(.article-open) {
  max-height: 180px; /* висота видимої частини */
  overflow: hidden;
}

/* Кнопка */
.article-btn {
  display: inline-block;
  margin: 16px auto 0;
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
  display: block;
  width: 220px;
  text-align: center;
}

/* hover */
.article-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
}

/* mobile adjustments */
@media (max-width: 760px) {
  .articles-section {
    padding: 0 18px;
    margin: 28px auto;
  }

  .article .article-inner:not(.article-open) {
    max-height: 140px; /* трохи менше на моб */
  }

  .article-btn {
    width: 100%; /* кнопка на всю ширину */
    padding: 12px 18px;
    font-size: 15px;
  }
}





/* responsive */
@media(max-width:1100px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {
    .header-contacts {
        justify-content: flex-end;
    }

    .socials {
        display: none !important;
    }

    .service-block {
        flex-direction: column !important;
        padding: 18px
    }

    .header-warning {
        font-size: 10px;
    }

    .service-block .img {
        width: 100%;
        height: 220px;
        flex: none
    }

    .nav {
        display: none
    }

    .burger {
        display: flex
    }

    .footer-contacts {
        text-align: left
    }

    .footer-inner {
        align-items: center
    }

    .tariffs-grid {
        grid-template-columns: 1fr
    }

    .why-grid {
        grid-template-columns: 1fr
    }

    .hero {
        margin-left: 14px;
        margin-right: 14px;
        height: 54vh
    }

    .hero h1 {
        font-size: 16px !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px !important;
        margin-left: 12px;
    }

    .hero-call-btn {
        padding: 8px 16px;
        font-size: 14px;
        bottom: 20px;
        /* немного выше, чтобы не упиралась в край */
    }

    .tariff-call-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 15px;
    }

}