/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
img {
    max-width: 100%;
    display: block;
}
.text-center {
    text-align: center;
}

/* ===== HEADER ===== */
header {
    background: #0f172a;
    color: white;
    padding: 15px 0;
    border-bottom: 3px solid #3b82f6;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 24px;
    font-weight: 700;
}
.logo span {
    color: #3b82f6;
}
.logo a {
    color: white;
}
.slogan {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    font-weight: 400;
}
nav ul {
    display: flex;
    gap: 30px;
}
nav ul a {
    color: #cbd5e1;
    transition: 0.3s;
    font-size: 15px;
}
nav ul a:hover,
nav ul a.active {
    color: white;
}
.header-phone a {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-text h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-text h1 span {
    color: #3b82f6;
}
.hero-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}
.btn-primary {
    background: #3b82f6;
    color: white;
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}
.hero-stats {
    display: flex;
    gap: 40px;
}
.stat .number {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    display: block;
}
.stat .label {
    font-size: 14px;
    color: #94a3b8;
}
.hero-image img {
    border-radius: 20px;
    width: 100%;
}

/* ===== CLIENTS ===== */
.clients {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}
.clients .section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.clients-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.clients-grid img {
    opacity: 0.4;
    transition: 0.3s;
    filter: grayscale(1);
}
.clients-grid img:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

/* ===== SERVICES PREVIEW ===== */
.services-preview,
.portfolio-preview {
    padding: 70px 0;
}
.services-preview h2,
.portfolio-preview h2,
.request h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-card .icon {
    font-size: 36px;
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.service-card p {
    color: #64748b;
    margin-bottom: 15px;
}
.more-link {
    color: #3b82f6;
    font-weight: 600;
}
.more-link:hover {
    text-decoration: underline;
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 0.7;
}
.portfolio-info {
    padding: 20px;
    background: #1e293b;
    color: white;
}
.portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}
.portfolio-info p {
    color: #94a3b8;
    font-size: 14px;
}

/* ===== REQUEST ===== */
.request {
    background: #0f172a;
    padding: 70px 0;
    color: white;
}
.request h2 {
    color: white;
}
.request .section-subtitle {
    color: #94a3b8;
}
.request-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.request-form input,
.request-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: #1e293b;
    color: white;
    margin-bottom: 15px;
}
.request-form input::placeholder,
.request-form textarea::placeholder {
    color: #64748b;
}
.request-form textarea {
    resize: vertical;
}
.request-form .btn {
    width: 100%;
    justify-content: center;
}

/* ===== PAGE HEADER (для внутренних страниц) ===== */
.page-header {
    padding: 50px 0;
    background: #0f172a;
    color: white;
    border-bottom: 3px solid #3b82f6;
}
.page-header h1 {
    font-size: 40px;
}
.page-header p {
    color: #94a3b8;
    font-size: 18px;
}

/* ===== УСЛУГИ (полная страница) ===== */
.services-full {
    padding: 60px 0;
}
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.service-block.reverse {
    direction: rtl;
}
.service-block.reverse .service-content {
    direction: ltr;
}
.service-block.reverse .service-image {
    direction: ltr;
}
.service-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}
.service-content p {
    color: #475569;
    margin-bottom: 15px;
}
.service-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #475569;
}
.service-content ul li {
    margin-bottom: 5px;
}
.service-image img {
    border-radius: 16px;
    width: 100%;
}

/* ===== ПОРТФОЛИО (полная страница) ===== */
.portfolio-full {
    padding: 60px 0;
}
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.portfolio-card-info {
    padding: 25px;
}
.portfolio-card-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.portfolio-card-info p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}
.portfolio-card-info p strong {
    color: #1e293b;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    padding: 60px 0;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-icon {
    font-size: 28px;
    min-width: 50px;
}
.contact-item h4 {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.contact-item a {
    color: #3b82f6;
}
.contact-item a:hover {
    text-decoration: underline;
}
.contact-item p {
    color: #475569;
}
.contacts-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.contacts-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.contacts-form input,
.contacts-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.contacts-form input:focus,
.contacts-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}
.contacts-form textarea {
    resize: vertical;
}
.map {
    margin-top: 40px;
}
.map img {
    border-radius: 16px;
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px;
    border-top: 1px solid #1e293b;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col .logo {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}
.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul a {
    font-size: 14px;
    transition: 0.3s;
}
.footer-col ul a:hover {
    color: white;
}
.footer-col a {
    color: #3b82f6;
}
.footer-col a:hover {
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}
.footer-bottom a {
    color: #64748b;
}
.footer-bottom a:hover {
    color: white;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 34px;
    }
    .service-block {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .service-block.reverse {
        direction: ltr;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-stats {
        gap: 20px;
    }
    .stat .number {
        font-size: 22px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .portfolio-grid-full {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-phone a {
        font-size: 15px;
    }
}
