* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #0d0d0d;
    color: #e8e8e8;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}


.header {
    background-color: rgba(13, 13, 13, 0.95);
    color: #e8e8e8;
    padding: 14px 0;
    border-bottom: 3px solid #444444;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #e8e8e8;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: #888888;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #888888;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-phone {
    font-size: 16px;
    font-weight: 500;
    color: #e8e8e8;
    background-color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid #333333;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.contact-phone:hover {
    background-color: #2a2a2a;
    transform: scale(1.05);
    border-color: #666666;
}


.hero {
    background-color: #0d0d0d;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(100, 100, 100, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.hero h1 {
    font-size: clamp(28px, 7vw, 52px);
    font-weight: 700;
    margin-bottom: 16px;
    color: #e8e8e8;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
}

.hero h1 span {
    color: #888888;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #aaaaaa;
    max-width: 700px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.btn {
    display: inline-block;
    background-color: #e8e8e8;
    color: #0d0d0d;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background-color: #cccccc;
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(200, 200, 200, 0.1);
}

.btn:active {
    transform: scale(0.95);
}


.section {
    padding: 60px 0;
    border-bottom: 1px solid #1a1a1a;
}

.section-title {
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 24px;
    color: #e8e8e8;
    text-align: center;
}

.section-title span {
    color: #888888;
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text p {
    color: #cccccc;
    font-size: clamp(15px, 1.8vw, 18px);
    margin-bottom: 16px;
}

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background-color: #111111;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid #1a1a1a;
}

.value-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: #0d0d0d;
    border: 1px solid #1a1a1a;
    transition: all 0.3s;
}

.value-item:hover {
    border-color: #444444;
    background-color: #141414;
}

.value-text {
    color: #cccccc;
    font-size: 15px;
    font-weight: 500;
}


.services-section {
    background-color: #0d0d0d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.service-card {
    background-color: #111111;
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: all 0.3s ease;
    cursor: default;
}

.service-card:hover {
    background-color: #1a1a1a;
    transform: translateY(-6px);
    border-color: #888888;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e8e8e8;
}

.service-card p {
    color: #aaaaaa;
    font-size: 15px;
}


.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    margin-top: 20px;
    text-align: center;
}

.benefit-item {
    padding: 28px 16px;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    background-color: #0d0d0d;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #666666;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.benefit-number {
    font-size: 38px;
    font-weight: 700;
    color: #888888;
    transition: color 0.3s;
}

.benefit-item:hover .benefit-number {
    color: #cccccc;
}

.benefit-item p {
    color: #aaaaaa;
    font-size: 15px;
    margin-top: 8px;
}


.contact-section {
    background-color: #0d0d0d;
}

.contact-subtitle {
    text-align: center;
    color: #aaaaaa;
    margin-bottom: 28px;
    font-size: 17px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #111111;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid #1a1a1a;
    transition: border-color 0.3s;
}

.contact-form:hover {
    border-color: #444444;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e8e8e8;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #222222;
    border-radius: 8px;
    font-size: 16px;
    background-color: #0d0d0d;
    color: #e8e8e8;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555555;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #888888;
    box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.15);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-submit {
    text-align: center;
    margin-top: 8px;
}

.form-note {
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin-top: 18px;
}

.form-note a {
    color: #aaaaaa;
    transition: color 0.3s;
}

.form-note a:hover {
    color: #e8e8e8;
}


.footer {
    background-color: #0d0d0d;
    color: #666666;
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #e8e8e8;
    text-decoration: underline;
}

.footer-contacts {
    margin-top: 8px;
    font-size: 14px;
}


@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .logo {
        font-size: 20px;
        width: 100%;
        text-align: center;
    }

    .nav {
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 13px;
        white-space: nowrap;
    }

    .contact-phone {
        font-size: 14px;
        padding: 5px 14px;
        margin-top: 2px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .hero p {
        font-size: 15px;
        padding: 0 6px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .about-text p {
        font-size: 15px;
    }

    .values {
        grid-template-columns: 1fr 1fr;
        padding: 18px 14px;
        gap: 10px;
    }

    .value-item {
        padding: 10px 12px;
    }

    .value-text {
        font-size: 13px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-card h3 {
        font-size: 17px;
    }

    .service-card p {
        font-size: 14px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .benefit-item {
        padding: 20px 12px;
    }

    .benefit-number {
        font-size: 30px;
    }

    .benefit-item p {
        font-size: 13px;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 15px;
        padding: 10px 14px;
    }

    .form-note {
        font-size: 12px;
    }

    .footer {
        padding: 24px 0;
    }

    .footer-contacts {
        font-size: 13px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
    }

    .footer-contacts span {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav {
        gap: 8px;
    }

    .nav-link {
        font-size: 11px;
    }

    .contact-phone {
        font-size: 12px;
        padding: 4px 10px;
    }

    .hero h1 {
        font-size: clamp(20px, 5vw, 24px);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 16px 12px;
    }

    .service-card h3 {
        font-size: 15px;
    }

    .service-card p {
        font-size: 12px;
    }

    .values {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px 10px;
    }

    .value-text {
        font-size: 12px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .benefit-number {
        font-size: 26px;
    }

    .contact-form {
        padding: 18px 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 8px 12px;
    }
}


@media (max-width: 768px) and (orientation: landscape) {
    .header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .logo {
        width: auto;
        font-size: 18px;
    }

    .nav {
        width: auto;
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    .contact-phone {
        font-size: 13px;
        padding: 4px 12px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: clamp(20px, 4vw, 28px);
    }
}

.header {
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}


@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
    
    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
    }
    
    .logo {
        font-size: 18px;
        order: 1;
        flex: 0 0 auto;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 6px;
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link {
        font-size: 11px;
        padding: 3px 5px;
        white-space: nowrap;
    }
    
    .contact-phone {
        font-size: 12px;
        padding: 3px 10px;
        order: 2;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 0;
    }
    
    .logo {
        font-size: 15px;
    }
    
    .nav-link {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .contact-phone {
        font-size: 10px;
        padding: 2px 8px;
    }
}

@media (max-width: 768px) {
    .header .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
    }
    
    .logo {
        font-size: 18px;
        order: 1;
        flex: 0 0 auto;
        text-align: left;
    }
    
    .contact-phone {
        font-size: 13px;
        padding: 4px 12px;
        order: 2;
        flex: 0 0 auto;
        margin-left: auto; 
    }
    
    .nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 6px;
        white-space: nowrap;
    }
}


@media (max-width: 480px) {
    .logo {
        font-size: 15px;
    }
    
    .contact-phone {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 2px 4px;
    }
}
@media (max-width: 768px) {
    .header .container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .logo {
        font-size: 18px !important;
        text-align: center !important;
        width: auto !important;
    }
    .contact-phone {
        font-size: 13px !important;
        padding: 4px 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 0 !important;
    }
    .nav {
        width: 100% !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
        flex-wrap: wrap !important;
    }
    .nav-link {
        font-size: 12px !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
    }
    .header .container {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 15px !important;
    }
    .contact-phone {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
    .nav-link {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
}

/* ЧЕРНО-КРАСНЫЙ ДИЗАЙН */

:root {
    --red: #8B0000;
    --red-light: #B22222;
    --red-glow: rgba(139, 0, 0, 0.3);
    --red-glow-strong: rgba(139, 0, 0, 0.5);
}

.header {
    border-bottom: 3px solid var(--red);
}

.logo span {
    color: var(--red-light);
}

.nav-link:hover {
    color: var(--red-light);
}

.nav-link::after {
    background-color: var(--red-light);
}

.contact-phone {
    border-color: var(--red);
    background-color: rgba(139, 0, 0, 0.15);
    color: #e8e8e8;
}

.contact-phone:hover {
    background-color: rgba(139, 0, 0, 0.25);
    border-color: var(--red-light);
}

.hero h1 span {
    color: var(--red-light);
}

.hero::before {
    background: radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.08) 0%, transparent 60%);
}

.btn {
    background-color: var(--red);
    color: #e8e8e8;
}

.btn:hover {
    background-color: var(--red-light);
    box-shadow: 0 8px 40px var(--red-glow);
}

.section-title span {
    color: var(--red-light);
}

.service-card {
    border-left: 4px solid var(--red);
}

.service-card:hover {
    border-color: var(--red-light);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.15);
}

.service-card h3 {
    color: #e8e8e8;
}

.benefit-number {
    color: var(--red-light);
}

.benefit-item:hover {
    border-color: var(--red-light);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.12);
}

.contact-form {
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.contact-form:hover {
    border-color: var(--red);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red-light);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}

.footer {
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.footer a:hover {
    color: var(--red-light);
}

.value-item:hover {
    border-color: var(--red);
    background-color: rgba(139, 0, 0, 0.05);
}

.form-note a:hover {
    color: var(--red-light);
}

.contact-phone {
    border-color: var(--red);
}

.contact-phone:hover {
    border-color: var(--red-light);
    background-color: rgba(139, 0, 0, 0.2);
}