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

:root {
    --primary: #1a3a5c;
    --primary-dark: #0d2137;
    --accent: #f5a623;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a3a5c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-dark);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(13,33,55,0.85) 0%, rgba(26,58,92,0.8) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: #fff;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #e09015;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: center;
}

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

.service-card h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-light);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: #fff;
}

.portfolio-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.contact-item-text span,
.contact-item-text a {
    color: var(--text-light);
}

.contact-item-text a:hover {
    color: var(--accent);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.8;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Page header for inner pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 150px 0 80px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.8;
}

/* Requisites */
.requisites {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.requisites h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.requisites p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* SRO badges */
.sro-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sro-badge {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sro-badge h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.sro-badge p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Service detail pages */
.service-detail {
    max-width: 800px;
}

.service-detail h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-detail h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.service-detail p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text);
    border-bottom: 1px solid #eee;
}

.service-list li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Service cards as links */
a.service-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
}

.carousel-slide {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--accent);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
}

.lightbox-btn:hover {
    background: var(--accent);
}

.lightbox-btn.prev {
    left: 30px;
}

.lightbox-btn.next {
    right: 30px;
}

@media (max-width: 768px) {
    .carousel-slide {
        min-height: 300px;
    }

    .carousel-slide img {
        max-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lightbox-btn.prev {
        left: 10px;
    }

    .lightbox-btn.next {
        right: 10px;
    }
}
