.page-header {
    background: linear-gradient(135deg, #2d3033 0%, #31344e 100%);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/Back_fon.png') center/cover no-repeat;
    opacity: 0.1;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.page-header__breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.page-header__breadcrumbs a {
    color: #ffd000;
    text-decoration: none;
}

.page-header__breadcrumbs a:hover {
    text-decoration: underline;
}

.page-header__breadcrumbs .separator {
    margin: 0 10px;
}

.page-header__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== SERVICES INTRO ========== */
.services-intro {
    padding: 80px 0;
    background: #fff;
}

.services-intro__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.services-intro__text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2d3033;
}

.services-intro__text p {
    color: #6c7279;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.services-intro__contacts {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.services-intro__image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========== SERVICES GRID ========== */
.services-grid-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__description {
    font-size: 1.1rem;
    color: #6c7279;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffd000, #ff9800);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    margin-bottom: 20px;
    color: #ffd000;
}

.service-card__icon svg {
    width: 50px;
    height: 50px;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3033;
}

.service-card__description {
    color: #6c7279;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.service-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd000;
}

/* ========== LEGAL SERVICES ========== */
.legal-services-section {
    padding: 80px 0;
    background: #fff;
}

.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.legal-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-card__icon {
    margin-bottom: 20px;
    color: #ffd000;
}

.legal-card__icon svg {
    width: 50px;
    height: 50px;
}

.legal-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3033;
}

.legal-card__description {
    color: #6c7279;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========== ACHIEVEMENTS SECTION ========== */
.achievements-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d3033 0%, #31344e 100%);
    color: #fff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.achievement-item {
    padding: 20px;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffd000;
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== WHY CHOOSE US ========== */
.why-choose-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    margin-bottom: 20px;
    color: #ffd000;
}

.advantage-icon svg {
    width: 50px;
    height: 50px;
}

.advantage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3033;
}

.advantage-item p {
    color: #6c7279;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: #ffd000;
    color: #2d3033;
    border-color: #ffd000;
}

.btn-primary:hover {
    background: transparent;
    color: #ffd000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: #ffd000;
    color: #ffd000;
}

.btn-outline:hover {
    background: #ffd000;
    color: #2d3033;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========== CALLBACK SECTION ========== */
.callback-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d3033 0%, #31344e 100%);
    color: #fff;
}

.callback__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.callback__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.callback__description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.callback__form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #ffd000;
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.callback__agree {
    font-size: 0.8rem;
    color: #6c7279;
    margin-top: 1rem;
}

.callback__agree a {
    color: #ffd000;
    text-decoration: underline;
}

.callback__agree a:hover {
    text-decoration: none;
}

/* ========== READ MORE BUTTON ========== */
.read-more-btn {
    background: none;
    border: none;
    color: #ffd000;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #e6bc00;
    text-decoration: underline;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
    .services-intro__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-intro__image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    .services-intro {
        padding: 60px 0;
    }
    
    .services-intro__text h2 {
        font-size: 1.75rem;
    }
    
    .services-intro__image {
        max-width: 100%;
    }
    
    .services-grid-section,
    .legal-services-section,
    .why-choose-us {
        padding: 60px 0;
    }
    
    .services-grid,
    .legal-services-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .callback-section {
        padding: 60px 0;
    }
    
    .callback__form {
        padding: 25px;
    }
    
    .callback__title {
        font-size: 1.75rem;
    }
    
    .services-intro__contacts {
        flex-direction: column;
    }
    
    .services-intro__contacts .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header__title {
        font-size: 1.75rem;
    }
    
    .page-header__description {
        font-size: 1rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .service-card__title {
        font-size: 1.25rem;
    }
    
    .legal-card__title {
        font-size: 1.2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card__footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-card__footer .btn {
        width: 100%;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.legal-card,
.advantage-item,
.achievement-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    .services-intro {
        background: #1a1a1a;
    }
    
    .services-intro__text h2 {
        color: #fff;
    }
    
    .services-intro__text p {
        color: #b0b0b0;
    }
    
    .services-grid-section {
        background: #1a1a1a;
    }
    
    .service-card {
        background: #2d2d2d;
    }
    
    .service-card__title,
    .legal-card__title,
    .advantage-item h3 {
        color: #fff;
    }
    
    .service-card__description,
    .legal-card__description,
    .advantage-item p {
        color: #b0b0b0;
    }
    
    .legal-services-section {
        background: #1a1a1a;
    }
    
    .legal-card {
        background: #2d2d2d;
    }
    
    .why-choose-us {
        background: #1a1a1a;
    }
    
    .advantage-item {
        background: #2d2d2d;
    }
    
    .callback__form {
        background: #2d2d2d;
    }
    
    .form-control {
        background: #1a1a1a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        border-color: #ffd000;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .page-header,
    .callback-section,
    .achievements-section,
    .scroll-top,
    .burger,
    .services-intro__contacts {
        display: none;
    }
    
    .service-card,
    .legal-card,
    .advantage-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .services-intro__content {
        grid-template-columns: 1fr;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus {
    outline: 2px solid #ffd000;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #ffd000;
    outline-offset: 2px;
}