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

:root {
    --color-dark: #1a1a2e;
    --color-white: #ffffff;
    --color-red: #8b1a2b;
    --color-gray: #f5f5f5;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: 246px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    font-style: normal;
    color: #0d141a;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0d141a;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ========== BURGER MENU ========== */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1d1e20;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== HERO SECTION (Pagrindinis) ========== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-video {
    flex: 0 0 640px;
}

.hero-video iframe {
    width: 640px;
    height: 360px;
    border: none;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 220px;
    padding: 40px 16px;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.page-hero h3 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
}

/* ========== APIE MUS ========== */
.about-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
}

.about-content .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.about-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.3;
    font-style: normal;
    color: #1d1e20;
    letter-spacing: normal;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    font-style: normal;
    color: #1d1e20;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text strong {
    color: #1d1e20;
    font-weight: 700;
}

.about-image {
    flex: 0 0 550px;
}

.about-image img {
    width: 100%;
}

/* ========== CARDS GRID (Paslaugos, Produktai) ========== */
.cards-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    overflow: hidden;
    color: #1d1e20;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image {
    width: 90%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-body {
    font-size: 16px;
    padding: 12px 24px 28px;
    text-align: center;
    background: var(--color-white);
    flex: 1;
}

.card-body h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #1d1e20;
}
.card-body h6 strong {
    font-size: 18px;
    font-weight: 600;
}

.card-body p {
    line-height: 1.6;
    color: rgb(13, 20, 26);
}

/* ========== KONTAKTAI ========== */
.contact-section {
    position: relative;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: stretch;
}

body.page-kontaktai::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 15, 30, 0.75), rgba(200, 200, 200, 0.3));
    z-index: 1;
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.contact-info {
    flex: 1;
    color: var(--color-white);
}

.contact-info h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 32px;
}

.contact-info h6 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info strong {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

.contact-form-column {
    flex: 0 0 540px;
    display: flex;
    flex-direction: column;
}

.contact-form-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.contact-form-wrapper {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px;
    color: #1d1e20;
}

.contact-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    margin-bottom: 20px;
    background: #fff;
    color: #1d1e20;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-red);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    display: block;
    margin: 0 auto;
    padding: 14px 40px;
    background: #B71C1C;
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #c94d5f;
}

.form-message {
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.form-success {
    background: #d4edda;
    color: #155724;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
}

/* ========== FOOTER ========== */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 16px;
    font-size: 10px;
    color: rgb(255, 255, 255);
    background: none;
    border: none;
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
    font-weight: 300;
}

/* ========== 404 ========== */
.not-found {
    text-align: center;
    padding: 120px 16px;
}

.not-found h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 16px;
}

.not-found p {
    font-size: 18px;
    margin-bottom: 24px;
}

.not-found a {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 30px;
    font-weight: 600;
}

strong.fs-big {
    font-size: 24px;
}

h1.inner-h1{
    font-weight: 500;
    font-size: 48px;
}
p.inner-p{
    font-size: 24px;
    font-weight: 300;
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .burger {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav a {
        display: block;
        padding: 14px 24px;
        text-align: right;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-video {
        flex: none;
        width: 100%;
    }

    .hero-video iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .contact-inner {
        flex-direction: column;
    }

    .contact-form-column {
        flex: none;
        width: 100%;
    }

    .contact-info h1 {
        font-size: 36px;
    }

    .page-hero h1,
    .page-hero h3 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        height: 80px;
    }

    .logo {
        width: 160px;
    }

    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .about-content .row {
        flex-direction: column;
    }

    .hero-content,.about-content,.contact-inner {
        padding: 36px 36px;
    }

    .about-content h3 {
        font-size: 32px;
    }
    .about-text {
        font-size: 16px;
    }
    strong.fs-big {
        font-size: 18px
    }
    h1.inner-h1{
        font-size: 28px;
    }
    p.inner-p{
        font-size: 18px;
        font-weight: 300;
        color: #fff;
    }
}

.page-pagrindinis {
    .hero-text h1 {
        text-align: left;
    }
}
