/* ============================================
   Промсервис — Modern Landing Page
   Цветовая схема: светлый фон, сине-бирюзовые акценты
   ============================================ */

/* --- Fonts: Manrope (Google Fonts в index.php) --- */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Titles --- */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #023e8a;
    position: relative;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #636e72;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b4d8, #023e8a);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    background: rgba(2, 34, 70, 0.64);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    border-bottom-color: rgba(2, 62, 138, 0.08);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.header__logo span {
    color: #8be9ff;
}

.header.scrolled .header__logo {
    color: #023e8a;
}

.header.scrolled .header__logo span {
    color: #00b4d8;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 400;
    position: relative;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.header.scrolled .header__nav a {
    color: #2d3436;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00b4d8;
    transition: width 0.3s ease;
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}

.header__nav a:hover {
    color: #fff;
}

.header.scrolled .header__nav a:hover {
    color: #00b4d8;
}

.header__cta {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #023e8a !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.header.scrolled .header__cta {
    background: linear-gradient(135deg, #00b4d8, #023e8a);
    color: #fff !important;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.header__cta::after {
    display: none !important;
}

/* --- Burger --- */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.scrolled .burger span,
.burger.active span {
    background: #023e8a;
}

.burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 30%, rgba(0, 180, 216, 0.58), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #011f4b 0%, #02639d 46%, #008db3 100%);
    overflow: hidden;
    padding: 130px 20px 90px;
}



.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 24, 57, 0.76) 0%, rgba(1, 42, 88, 0.45) 52%, rgba(0, 180, 216, 0.14) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
}

.hero__content {
    position: relative;
    max-width: 720px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #dff8ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hero__subtitle {
    max-width: 650px;
    font-size: 21px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 34px;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__btn {
    display: inline-block;
    padding: 17px 34px;
    background: #fff;
    color: #023e8a;
    font-size: 18px;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.88);
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
    color: #023e8a;
}

.hero__btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.hero__panel {
    position: relative;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero__panel::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.hero__panel-head {
    margin-bottom: 24px;
}

.hero__panel-head span {
    display: block;
    color: #9beeff;
    font-size: 15px;
    margin-bottom: 4px;
}

.hero__panel-head strong {
    display: block;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
}

.hero__features {
    display: grid;
    gap: 14px;
}

.hero__feature {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3436;
}

.hero__feature strong {
    display: block;
    margin-bottom: 6px;
    color: #023e8a;
    font-size: 24px;
    line-height: 1;
}

.hero__feature span {
    display: block;
    color: #495057;
    font-size: 15px;
    line-height: 1.45;
}

/* ============================================
   SECTION — About
   ============================================ */
.section {
    padding: 80px 0;
}

.section--gray {
    background: #f1f3f5;
}

.section--dark {
    background: linear-gradient(135deg, #023e8a, #00b4d8);
    color: #fff;
}

.section--dark .section-title {
    color: #fff;
}

.section--dark .section-title::after {
    background: #fff;
}

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.about__grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about__image {
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about__image:hover img {
    transform: scale(1.05);
}

.about__text {
    flex: 1;
}

.about__text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTION — Services
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.15);
    border-color: #00b4d8;
}

.service-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f8ff, #d6f0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon svg {
    width: 35px;
    height: 35px;
    fill: #00b4d8;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #023e8a;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 15px;
    color: #636e72;
    line-height: 1.7;
}

/* ============================================
   SECTION — Advantages
   ============================================ */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.advantage-item__number {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
}

.advantage-item__label {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SECTION — Working (Деятельность)
   ============================================ */
.working__grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.working__text {
    flex: 1;
}

.working__text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.working__text p:last-child {
    margin-bottom: 0;
}

.working__image {
    flex: 0 0 45%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.working__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.working__image:hover img {
    transform: scale(1.05);
}

/* ============================================
   SECTION — Form
   ============================================ */
.form__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3436;
    background: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
    background: #fff;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-group .error-msg {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.form__btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00b4d8, #023e8a);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

.form__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form__success {
    display: none;
    text-align: center;
    padding: 30px;
}

.form__success.show {
    display: block;
}

.form__success svg {
    width: 60px;
    height: 60px;
    fill: #00b4d8;
    margin-bottom: 15px;
}

.form__success h3 {
    font-size: 24px;
    color: #023e8a;
    margin-bottom: 8px;
}

.form__success p {
    color: #636e72;
}

/* ============================================
   SECTION — Contacts
   ============================================ */
.contacts__grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contacts__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #2d3436;
}

.contacts__item svg {
    width: 30px;
    height: 30px;
    fill: #00b4d8;
    flex-shrink: 0;
}

.contacts__item a {
    color: #023e8a;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.3s ease;
}

.contacts__item a:hover {
    border-bottom-color: #023e8a;
}

.contacts__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contacts__map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1e272e;
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 36px;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px 40px;
    align-items: start;
    text-align: left;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.footer__logo span {
    color: #5dd9f5;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
    max-width: 280px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    width: fit-content;
}

.footer__nav a:hover {
    color: #5dd9f5;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__contact-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__contact-link:hover {
    color: #5dd9f5;
    border-bottom-color: rgba(93, 217, 245, 0.45);
}

.footer__bottom {
    padding-top: 24px;
    text-align: center;
}

.footer__copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate--visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero__content {
        max-width: 760px;
    }
    .hero__panel {
        max-width: 760px;
        width: 100%;
    }
    .hero__features {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero__title { font-size: 46px; }
    .section-title { font-size: 36px; }
    .about__grid, .working__grid {
        flex-direction: column;
        gap: 30px;
    }
    .about__image, .working__image {
        flex: none;
        width: 100%;
    }
    .about__image img, .working__image img {
        height: 300px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__tagline {
        max-width: 420px;
    }
}

@media screen and (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }

    .header__nav a,
    .header__nav a:hover {
        color: #2d3436;
    }

    .header__nav.open {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 120px 20px 70px;
        text-align: center;
    }
    .hero::before {
        background-position: center 58%;
        background-size: 58%;
    }
    .hero__content,
    .hero__panel {
        margin: 0 auto;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__features {
        grid-template-columns: 1fr;
    }
    .hero__title { font-size: 38px; }
    .hero__subtitle { font-size: 18px; }
    .hero__btn { font-size: 16px; padding: 14px 32px; }
    .hero__panel-head strong { font-size: 26px; }

    .section { padding: 60px 0; }
    .section-title { font-size: 30px; }
    .section-subtitle { font-size: 16px; margin-bottom: 35px; }

    .service-card { padding: 25px 20px; }

    .advantages__grid { gap: 25px; }
    .advantage-item__number { font-size: 40px; }

    .form__wrapper { padding: 25px; }
    .contacts__grid { gap: 25px; flex-direction: column; align-items: center; }
    .contacts__map iframe { height: 300px; }

    .footer {
        padding: 36px 0 28px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer__tagline {
        margin: 0 auto;
        max-width: 320px;
    }

    .footer__nav {
        align-items: center;
    }

    .footer__nav a {
        margin: 0 auto;
    }

    .footer__contacts {
        align-items: center;
    }

    .footer__contact-link {
        margin: 0 auto;
    }

    .header__cta { display: none; }
    .header__nav .header__cta {
        display: block;
        text-align: center;
        margin-top: 10px;
        background: linear-gradient(135deg, #00b4d8, #023e8a);
        color: #fff !important;
    }
}

@media screen and (max-width: 480px) {
    .hero__title { font-size: 31px; }
    .hero {
        min-height: 90vh;
        padding: 105px 20px 60px;
    }
    .hero__eyebrow {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 26px;
    }
    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .hero__btn {
        width: 100%;
    }
    .hero__panel {
        padding: 22px;
        border-radius: 22px;
    }
    .hero__panel-head {
        margin-bottom: 18px;
    }
    .hero__panel-head strong {
        font-size: 23px;
    }
    .hero__feature {
        padding: 15px;
    }
    .section-title { font-size: 26px; }
    .about__text p, .working__text p { font-size: 15px; }
    .about__image img, .working__image img { height: 220px; }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .advantages__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .advantage-item__number { font-size: 34px; }
    .advantage-item__label { font-size: 14px; }

    .form__wrapper { padding: 20px; border-radius: 12px; }
    .contacts__item { font-size: 15px; }
    .contacts__map iframe { height: 220px; }

    .footer { padding: 28px 0 24px; }
    .footer__copy { font-size: 13px; }
}

@media screen and (max-width: 360px) {
    .hero__title { font-size: 27px; }
    .section-title { font-size: 22px; }
    .advantages__grid {
        grid-template-columns: 1fr;
    }
}
