:root {
    --primary-color: #2f3947;
    --secondary-color: #3e4a5d;
    --accent-color: #4f7cff;
    --accent-hover: #3a5fd8;
    --light-color: #e9f0fb;
    --dark-color: #1c2430;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --text-color: #1f2933;
    --light-text: #ffffff;
    --gray-light: #f5f7fa;
    --gray-medium: #e1e8f0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #e9f0fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */

.nav-desktop {
    display: flex;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-desktop ul li a {
    color: var(--light-text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-desktop ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-desktop ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-desktop ul li a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-mobile ul {
    list-style: none;
    padding: 20px;
}

.nav-mobile ul li {
    margin-bottom: 15px;
}

.nav-mobile ul li a {
    color: var(--light-text);
    font-weight: 500;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-mobile ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Generic page hero */

.page-hero {
    background: linear-gradient(
        135deg,
        rgba(47, 57, 71, 0.95),
        rgba(62, 74, 93, 0.95)
    );
    color: var(--light-text);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(79,124,255,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(47,57,71,0.5) 0%, transparent 50%);
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success-color);
    color: var(--light-text);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.page-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.page-hero p {
    max-width: 700px;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Sections */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
}

/* Cards / grids */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    font-size: 0.98rem;
    color: #555;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 124, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.5s;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 124, 255, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn-ghost {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.btn-ghost:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contact page */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
    gap: 30px;
}

.contact-form {
    background-color: #fff;
    padding: 30px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-form p {
    margin-bottom: 22px;
    color: #555;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
    min-width: 140px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gray-medium);
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background-color: #fdfdfd;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(79, 124, 255, 0.15);
    background-color: #ffffff;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: #fff;
    padding: 22px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.info-line i {
    color: var(--accent-color);
}

/* About page */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 35px;
    align-items: flex-start;
}

.about-block {
    background-color: #fff;
    padding: 26px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-block + .about-block {
    margin-top: 18px;
}

.about-block h2,
.about-block h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-block p {
    color: #555;
    font-size: 0.96rem;
}

.about-list {
    margin-top: 10px;
    padding-left: 18px;
}

.about-list li {
    margin-bottom: 7px;
    font-size: 0.95rem;
    color: #555;
}

.about-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-hover);
}

.about-highlight h3 {
    margin-bottom: 8px;
}

.about-highlight p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Access links page */

.access-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 30px;
}

.access-block {
    background-color: #fff;
    padding: 24px 22px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.access-block h2,
.access-block h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.access-block p {
    font-size: 0.96rem;
    color: #555;
}

.access-cta {
    margin-top: 15px;
}

.link-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.link-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 18px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.link-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.link-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.link-card .btn {
    margin-top: 12px;
    font-size: 0.85rem;
}

/* Reviews page */

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
    gap: 30px;
}

.review-card {
    background-color: #fff;
    padding: 24px 22px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.review-name {
    font-size: 0.98rem;
    font-weight: 600;
}

.review-meta {
    font-size: 0.82rem;
    color: #888;
}

.review-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-text {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
}

.review-form h2 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.review-form p {
    margin-bottom: 18px;
    font-size: 0.94rem;
    color: #555;
}

/* Sidebar info box */

.side-box {
    background-color: #fff;
    padding: 22px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.side-box h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.side-box p {
    font-size: 0.93rem;
    color: #555;
}

/* Footer */

footer {
    background: linear-gradient(135deg, var(--dark-color), #151c26);
    color: var(--light-text);
    padding: 70px 0 20px;
    position: relative;
    margin-top: 40px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-links li::before {
    content: '▸';
    margin-right: 7px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--light-text);
    transform: translateX(4px);
}

.copyright {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.85rem;
}

/* Animations */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 992px) {
    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .contact-wrapper,
    .about-layout,
    .access-layout,
    .reviews-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero {
        padding: 70px 0 60px;
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: 1.25rem;
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }

    section {
        padding: 60px 0;
    }
}
