.nowrap { white-space: nowrap; }

/* ===== Variables ===== */
:root {
    --blue: #2E7DD6;
    --blue-dark: #1B5FAA;
    --blue-light: #E8F2FC;
    --blue-glow: rgba(46, 125, 214, 0.15);
    --dark: #0F1B2D;
    --dark-soft: #1A2A40;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --bg: #FAFBFD;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue), #5BA3E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(46, 125, 214, 0.35);
}

.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(46, 125, 214, 0.45);
    transform: translateY(-1px);
}

.btn--white {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.btn--white:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--lg { padding: 14px 36px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--nav {
    padding: 8px 24px;
    font-size: 0.875rem;
    background: var(--blue);
    color: var(--white) !important;
    border-color: var(--blue);
}

.btn--nav:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white) !important;
}

.btn--nav::after { display: none !important; }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav--scrolled {
    background: rgba(250, 251, 253, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.nav--scrolled .nav__logo span,
.nav--scrolled .nav__menu a:not(.btn) {
    color: var(--dark);
}

.nav--scrolled .nav__toggle span {
    background: var(--dark);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.nav__logo span { color: var(--white); transition: var(--transition); }

.nav__logo img { border-radius: 8px; }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.nav__menu a:not(.btn):hover { color: var(--white); }
.nav--scrolled .nav__menu a:not(.btn):hover { color: var(--blue); }

.nav__menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 1px;
}

.nav--scrolled .nav__menu a:not(.btn)::after { background: var(--blue); }

.nav__menu a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero with Background ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 27, 45, 0.85) 0%,
        rgba(27, 95, 170, 0.65) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 140px 0 80px;
    width: 100%;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 20px 8px 10px;
    margin-bottom: 28px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero__badge img { border-radius: 6px; }

.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.hero__stars {
    display: flex;
    gap: 2px;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--white);
}

.section--dark {
    background: var(--dark);
}

.section__title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section__title--left { text-align: left; }
.section__title--white { color: var(--white); }

.section__subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section__subtitle--white { color: rgba(255,255,255,0.6); }

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-glow);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Offer Section ===== */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.offer__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.offer__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.offer__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.offer-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.offer-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(46, 125, 214, 0.3);
}

.offer-item__check {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(46, 125, 214, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.offer-item h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.offer-item p {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    line-height: 1.5;
}

.offer__cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item--wide {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__content p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.about__content p:last-of-type { margin-bottom: 36px; }

.stats {
    display: flex;
    gap: 40px;
}

.stat { text-align: center; }

.stat__number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blue);
    display: inline;
}

.stat__plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
}

.stat__label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.about__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__card {
    background: var(--bg);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.about__card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.about__card-icon {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.about__card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.about__card p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== Area Grid ===== */
.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.area-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    transition: var(--transition);
}

.area-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.area-card h3 {
    font-size: 1rem;
    color: var(--gray-700);
}

.area-card--featured {
    padding: 36px 28px;
    border-color: var(--blue-glow);
    background: linear-gradient(135deg, var(--white), var(--blue-light));
}

.area-card--featured h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.area-card--featured p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.area-card__pin {
    color: var(--blue);
    margin-bottom: 12px;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-glow);
}

.blog-card__img {
    flex-shrink: 0;
    width: 120px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.blog-card__content {
    padding: 24px;
    flex: 1;
}

.blog-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

a.contact-item__value:hover { color: var(--blue); }

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    background: var(--bg);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 48px 0 32px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__brand img { border-radius: 8px; }

.footer__brand strong {
    color: var(--white);
    font-size: 1.1rem;
    display: block;
}

.footer__brand p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.footer__links a:hover { color: var(--white); }

.footer__copy {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

/* ===== Floating CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(46, 125, 214, 0.45);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 3s ease-in-out infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(46, 125, 214, 0.55);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(46, 125, 214, 0.45); }
    50% { box-shadow: 0 6px 30px rgba(46, 125, 214, 0.65); }
}

/* ===== Animations ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .offer-grid { grid-template-columns: 1fr; }
    .offer__image { position: static; max-height: 300px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item--wide { grid-column: span 2; grid-row: span 1; }
    .section__title--left { text-align: center; }
    .about__content { text-align: center; }
    .stats { justify-content: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav__inner { padding: 0 4px; }

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
    }

    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__menu a { color: var(--dark) !important; }

    .nav__toggle { display: flex; }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 28px 24px; }

    .area-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .area-card--featured { padding: 24px 20px; }

    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-card { flex-direction: column; }
    .blog-card__img { width: 100%; height: 80px; }
    .blog-card__content { padding: 20px; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-form { padding: 28px 24px; }

    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-item--wide { grid-column: span 1; }

    .offer-item { padding: 16px; }

    .hero { min-height: 100svh; }
    .hero__inner { padding: 100px 0 60px; }
    .hero__badge { font-size: 0.8rem; padding: 6px 16px 6px 8px; margin-bottom: 20px; }

    .section { padding: 64px 0; }
    .section__subtitle { margin-bottom: 36px; }

    .about__card { padding: 20px; }

    .stats { gap: 24px; }
    .stat__number { font-size: 1.8rem; }

    .footer { padding: 36px 0 24px; }
    .footer__brand { flex-direction: column; text-align: center; }

    .offer__cta .btn { font-size: 0.85rem; padding: 14px 20px; white-space: nowrap; text-align: center; }

    .floating-cta { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

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

    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }
    .hero__title { font-size: 1.85rem; }
    .hero__subtitle { font-size: 1rem; }

    .offer__cta .btn { white-space: normal; line-height: 1.4; font-size: 0.85rem; padding: 14px 20px; }

    .btn--lg { padding: 14px 24px; }

    .section__title { font-size: 1.6rem; }
    .section__subtitle { font-size: 0.95rem; }

    .footer__links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
