:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-bg: #f3f4f6;
    --secondary-text: #4b5563;
    --accent-color: #2563eb;
    --accent-text: #ffffff;
    --footer-bg: #111827;
    --footer-text: #f9fafb;
    --main-font: 'Inter', sans-serif;
    --heading-font: 'Merriweather', serif;
    --border-radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--accent-color);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

input,
textarea,
select {
    font-family: var(--main-font);
    font-size: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .mobile-break-word {
        word-break: break-all;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== header_main ===== */
.js-mobile-menu {
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.js-mobile-menu.is-open {
    max-height: 400px;
    visibility: visible;
}

.js-nav-link {
    hyphens: auto;
}

#header {
    overflow: visible;
}

/* ===== hero_section ===== */
#hero .font-heading {
    font-family: var(--heading-font);
}

#hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.js-scroll-link {
    cursor: pointer;
    text-decoration: none;
}

/* ===== intro_text ===== */
#ivadas h2 {
    font-family: var(--heading-font);
}

#ivadas p {
    font-family: var(--main-font);
}

#ivadas .container {
    max-width: 1200px;
}

@media (max-width: 767px) {
    #ivadas h2 {
        line-height: 1.3;
    }
}

/* ===== system_logic ===== */
#veikimas {
    overflow: hidden;
}

#veikimas .container {
    width: 100%;
}

#veikimas h2,
#veikimas h3 {
    hyphens: auto;
    line-height: 1.2;
}

#veikimas p {
    hyphens: auto;
}

/* ===== payers_list ===== */
#kategorijos {
    hyphens: auto;
}

#kategorijos .font-merriweather {
    font-family: var(--heading-font);
}

#kategorijos .font-inter {
    font-family: var(--main-font);
}

#kategorijos .group:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* ===== tax_types ===== */
hyphens:auto;

#imokos .container {
    max-width: 1200px
}

#imokos img {
    transition: transform .5s ease
}

#imokos img:hover {
    transform: scale(1.02)
}

/* ===== reporting_dates ===== */
#terminai {
    hyphens: auto;
}

.js-smooth-scroll {
    text-decoration: none;
}

/* ===== payment_steps ===== */
.js-step-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#apmokejimas h2,
#apmokejimas h3 {
    line-height: 1.2;
}

@media (max-width: 767px) {
    #apmokejimas h2 {
        font-size: 16px;
    }

    #apmokejimas h3 {
        font-size: 14px;
    }
}

/* ===== idv_info ===== */
#idv {
    color: var(--primary-text);
}

.font-serif {
    font-family: var(--heading-font);
}

.font-sans {
    font-family: var(--main-font);
}

.js-info-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* ===== errors_guide ===== */
#klaidos {
    hyphens: auto;
}

.js-item {
    transition: transform 0.4s ease-in-out;
}

.js-item:hover {
    transform: translateY(-5px);
}

.container {
    max-width: 1200px;
}

/* ===== tips_section ===== */
#patarimai {
    --main-font: 'Inter', sans-serif;
    --heading-font: 'Merriweather', serif;
    font-family: var(--main-font);
}

#patarimai h2,
#patarimai h3 {
    font-family: var(--heading-font);
}

.js-tip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== law_updates ===== */
#istatymai h2,
#istatymai h3 {
    font-family: var(--heading-font);
    font-weight: 700
}

#istatymai p {
    hyphens: auto
}

#istatymai .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05)
}

#istatymai .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

/* ===== mission_statement ===== */
#apie {
    font-family: var(--main-font);
}

#apie h2 {
    font-family: var(--heading-font);
}

.hyphens-auto {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

@media (max-width: 767px) {
    #apie h2 {
        line-height: 1.1;
    }

    #apie p {
        line-height: 1.3;
    }
}

/* ===== faq_block ===== */
.js-faq-item.is-active .js-faq-icon {
    transform: rotate(180deg);
}

.js-faq-item.is-active .js-faq-content {
    max-height: 500px;
}

/* ===== form_section ===== */
#kontaktai {
    font-family: var(--main-font);
}

#kontaktai h2 {
    font-family: var(--heading-font);
}

#kontaktai input::placeholder,
#kontaktai textarea::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

#kontaktai input:focus,
#kontaktai textarea:focus {
    border-color: var(--accent-color);
}

/* ===== footer_main ===== */
.footer-section {
    font-family: var(--main-font);
}

.font-heading {
    font-family: var(--heading-font);
}

.footer-logo {
    max-height: 50px;
}

.tag-cloud span {
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.tag-cloud span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease;
}

.comment-item:hover {
    transform: translateX(5px);
}

.legal-links a {
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.legal-links a:hover::after {
    width: 100%;
}

@media (max-width: 767px) {
    .footer-section h3 {
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .footer-section p {
        line-height: 1.4;
    }

    .tag-cloud {
        justify-content: center;
    }

    .footer-brand-column,
    .footer-tags-column,
    .footer-comments-column {
        text-align: center;
    }

    .comment-item {
        text-align: left;
    }
}