/* css/style.css */

/* ---------- ОБНУЛЕНИЕ ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e1e2f;
    background-color: #fafaff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- ШАПКА ---------- */
.header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #4a3aff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: #ff3a5e;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #1e1e2f;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4a3aff;
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-block;
    background: #4a3aff;
    color: #fff;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ff3a5e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74,58,255,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid #4a3aff;
    color: #4a3aff;
}

.btn-outline:hover {
    background: #4a3aff;
    color: #fff;
}

.btn-small {
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* ---------- ЗАГОЛОВКИ СТРАНИЦ ---------- */
.page-header {
    background: linear-gradient(135deg, #4a3aff 0%, #6a5aff 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ---------- СЕТКИ ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ---------- КАРТОЧКИ УСЛУГ ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.2s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74,58,255,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: #ff3a5e;
    margin: 20px 0;
}

.service-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #8a8aa0;
}

.service-desc {
    color: #4a4a5e;
    margin-bottom: 20px;
}

/* ---------- БЛОГ (КАРТОЧКИ) ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.blog-meta {
    color: #8a8aa0;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ---------- ФОРМЫ ---------- */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ---------- ДЕТАЛЬНАЯ СТРАНИЦА УСЛУГИ ---------- */
.service-detail {
    padding: 60px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.service-info h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.service-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-info li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.service-info li::before {
    content: "✓";
    color: #4a3aff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.price-block {
    background: #f0f0ff;
    padding: 20px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff3a5e;
    display: block;
}

.service-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-cases h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.case {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

.case img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.case p {
    padding: 15px;
    font-weight: 600;
}

/* ---------- ФУТЕР ---------- */
.footer {
    background: #1e1e2f;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer a {
    color: #b0b0c0;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #33334e;
    color: #8a8aa0;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* будет открываться по кнопке гамбургер – см. js */
    }
    .grid-2,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}