:root {
    --blue: #71bce5;
    --heading: #303030;
    --dark: #262626;
    --darker: #131313;
    --light: #f7f7f7;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--gray-500);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: inherit;
    font-weight: inherit;
}

p { margin: 0; font-size: 18px; line-height: 1.25; }
ul { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    padding: 20px 0;
    background: #fff;
}

.site-header__inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo { display: inline-block; }
.logo img { width: 56px; }

.tagline {
    padding-bottom: 8px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-700);
}

.contact-btn {
    display: none;
    margin-left: 20px;
    padding: 8px 24px;
    border-radius: 9999px;
    background: var(--blue);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    transition: box-shadow 150ms;
}
.contact-btn:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

@media (min-width: 640px) {
    .contact-btn { display: inline-block; }
}

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    padding: 120px 0 200px;
    background: #fff url(img/top.png) no-repeat 65vw 20vh;
    background-size: auto 70%;
}

.hero__col { width: 60%; }

.intro { padding-bottom: 128px; }

.intro__title {
    margin: 0 0 16px -8px;
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--heading);
}

.intro__lead {
    margin-bottom: 64px;
    font-size: 1.2em;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    color: var(--blue);
}

.btn-play__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
}
.btn-play__icon svg { width: 18px; height: 18px; margin-left: 3px; }

.section-title {
    padding-bottom: 56px;
    font-size: 50px;
    font-weight: 900;
    color: var(--heading);
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 40px;
}

.feature { padding-bottom: 40px; }

.feature__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    color: var(--gray-600);
}
.feature__title svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (min-width: 640px) {
    .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .intro__title { padding-bottom: 40px; }
}

/* ---------- About ---------- */

.about {
    margin-top: -22%;
    padding: 30% 0 50px;
    color: #fff;
    background-image: url(img/bg2.svg), linear-gradient(to bottom, transparent 95%, var(--dark) 95%);
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
}

.about__inner {
    background: var(--dark);
    text-align: center;
}

.about__intro {
    width: 65%;
    max-width: 100%;
    margin: 0 auto 48px;
}

.about__title {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
}

.about__text {
    margin-top: 24px;
    font-size: 24px;
    line-height: 1.625;
}

.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

.product img { width: 56px; margin: 0 auto 24px; }

.product h3 {
    margin-bottom: 40px;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #fff;
}

@media (min-width: 768px) {
    .products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .products { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Showcase ---------- */

.showcase {
    position: relative;
    overflow-y: hidden;
    margin-bottom: -48px;
    color: #fff;
    background-image: url(img/bg3.svg), linear-gradient(to bottom, var(--dark) 5%, var(--light) 5%);
    background-size: cover;
}

.showcase__img { max-width: 1156px; margin: 0 auto; }

@media (min-width: 640px) {
    .showcase { margin-bottom: -96px; }
    .showcase__img { margin-top: -20px; }
}

@media (min-width: 1024px) {
    .showcase__img { margin-top: -28px; }
}

@media (min-width: 1536px) {
    .showcase__img { margin-top: 56px; }
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    padding: 8vw 0 calc(3vw + 20px);
    background: var(--darker);
    color: #fff;
}

.footer-heading {
    font-size: calc(12px + 1.5vw);
    line-height: 1.25;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 64px;
}

.footer-address { padding: 40px 0; }

.footer-charter { padding-bottom: 20px; }
.footer-charter a { display: inline-block; }
.footer-charter img {
    display: block;
    width: 480px;
    max-width: 100%;
    height: auto;
}

.footer-label {
    padding-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.footer-link {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    font-size: 18px;
    color: var(--gray-500);
}
.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gray-500);
    transition: background-color 150ms;
}
.footer-link:hover::after { background: #fff; }
.footer-link span { display: inline-block; }
.footer-link--address::after { display: none; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    font-size: 18px;
}

@media (min-width: 640px) {
    .footer-contacts { flex-direction: row; }
    .footer-link--address::after { display: block; }
}

@media (min-width: 1024px) {
    .footer-charter img { width: 360px; }
}

@media (min-width: 1280px) {
    .site-footer .container { max-width: 80vw; }
}

/* ---------- Video lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vh 10vw;
    background: rgba(0, 0, 0, 0.8);
}
.lightbox[hidden] { display: none; }

.lightbox__content { position: relative; width: 100%; max-width: 80%; }

.lightbox__close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: #fff;
}
.lightbox__close::before,
.lightbox__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--darker);
}
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.video-wrapper {
    position: relative;
    height: 0;
    padding-top: 25px;
    padding-bottom: 56.25%;
}
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 540px) {
    .lightbox { padding: 0; }
}

/* ---------- Responsive overrides (desktop-first, from original) ---------- */

@media (max-width: 1399px) {
    .about { background-size: initial; margin-top: -35px; }
}

@media (max-width: 1199px) {
    .hero { background-position: 60vw 16vh; background-size: auto 50%; }
    .about { margin-top: -30%; padding-top: 36%; }
}

@media (max-width: 992px) {
    .hero { background: #fff; padding-top: 220px; padding-bottom: 40px; }
    .hero__col { width: 100%; }
    .about { background-image: none; background-color: var(--dark); margin: 0; padding-top: 60px; }
}

@media (max-width: 639px) {
    .intro__title { font-size: 100px; }
    .section-title { font-size: 40px; }
    .about__intro { width: 100%; }
    .about__title { font-size: 40px; }
    .about__text { font-size: 20px; }
}
