:root {
    --primary: #59416A;
    --accent: #E94283;
    --text: #111;
    --light: #6e6e6e;
    --bg: #ffffff;
    --soft: #f6f6f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* loader */
.loader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .8s;
}

.loader-logo {
    font-size: 40px;
    font-weight: 600;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: .3; }
    50% { opacity: 1; }
    100% { opacity: .3; }
}

/* nav */
.nav {
    position: fixed;
    width: 100%;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.logo-text {
    display: inline;
    font-size: 40px;
    transition: font-size 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: gap 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    transition: color 0.3s, font-size 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-phone {
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-phone:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.nav-phone.copied {
    background: #59416A;
    border-color: #59416A;
    color: white !important;
}

/* hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(140deg, #59416A, #2e2036);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(36px, 8vw, 64px);
    line-height: 1.1;
    margin-bottom: 20px;
    margin-top: 100px;
}

.hero p {
    font-size: clamp(18px, 4vw, 22px);
    opacity: .8;
    margin-bottom: 40px;
}

.hero-button {
    background: var(--accent);
    border: none;
    padding: 18px 36px;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 66, 131, 0.3);
}

#grid {
    position: absolute;
    inset: 0;
    opacity: .25;
}

/* sections */
.section {
    padding: 70px 20px;
}

.section.light {
    background: var(--soft);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: clamp(32px, 5vw, 40px);
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.lead {
    font-size: clamp(16px, 2vw, 18px);
    max-width: 1000px;
    line-height: 1.8;
}

/* catalog grid */
.grid, 
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 30px);
}

.grid {
    margin-top: 40px;
}

.advantages-grid {
    margin-top: 50px;
}

.card,
.advantage-card {
    background: white;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(89, 65, 106, 0.1);
}

.card h3,
.advantage-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
}

.card p,
.advantage-card p {
    color: var(--light);
    line-height: 1.6;
    font-size: clamp(14px, 1.8vw, 16px);
}

/* advantages specific */
.advantage-icon {
    font-size: clamp(30px, 4vw, 36px);
    margin-bottom: 15px;
}

/* contacts */
#contacts p {
    font-size: clamp(18px, 2.5vw, 20px);
    margin-bottom: 15px;
    color: var(--light);
}

/* footer */
.footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 30px;
}

/* ===== ПРОПОРЦИОНАЛЬНОЕ УМЕНЬШЕНИЕ ШАПКИ ===== */
@media (max-width: 1200px) {
    .logo-img {
        height: 55px;
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
    
    .nav-phone {
        font-size: 15px;
        padding: 7px 18px;
    }
}

@media (max-width: 1100px) {
    .logo-img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 32px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .nav-phone {
        font-size: 14px;
        padding: 6px 16px;
        border-width: 2px;
    }
}

@media (max-width: 1000px) {
    .logo-img {
        height: 48px;
    }
    
    .logo-text {
        font-size: 30px;
    }
    
    .nav-links {
        gap: 18px;
    }
    
    .nav-links a {
        font-size: 13.5px;
    }
    
    .nav-phone {
        font-size: 13.5px;
        padding: 6px 15px;
    }
}

@media (max-width: 900px) {
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .nav-phone {
        font-size: 13px;
        padding: 5px 14px;
        border-width: 1.5px;
    }
}

@media (max-width: 800px) {
    .logo-img {
        height: 42px;
    }
    
    .logo-text {
        font-size: 26px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 12.5px;
    }
    
    .nav-phone {
        font-size: 12.5px;
        padding: 5px 13px;
    }
}

@media (max-width: 700px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .nav-phone {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 11.5px;
    }
    
    .nav-phone {
        display: none;
    }
}

@media (max-width: 500px) {
    .nav-container {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-links a {
        font-size: 11px;
    }
    
    .nav-phone {
        display: none;
    }
}

@media (max-width: 400px) {
    .nav-container {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-links a {
        font-size: 10px;
    }
    
    .nav-phone {
        display: none;
    }
}

/* Остальные стили для мобильных устройств (контент) */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
    
    .nav-phone {
        display: none;
    }

    .container {
        padding: 0 15px;
    }
    
    .grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 15px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .card,
    .advantage-card {
        padding: 20px;
    }
    
    .hero-button {
        padding: 15px 30px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .nav-container {
        padding: 20px 20px;
        justify-content: center;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        gap: 20px;
        transform: scale(1.2);
    }
    
    .logo-img {
        height: 70px;
        width: auto;
    }
    
    .logo-text {
        font-size: 48px;
        font-weight: 600;
    }
    
    .nav {
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .hero h1 {
        margin-top: 30px;
    }
}