/* ========================================
   Кадровое агентство "Северный Вектор"
   Основной файл стилей
   ======================================== */

/* CSS Variables */
:root {
    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #223246;
    --muted: #607080;
    --primary: #1f5fa8;
    --primary-dark: #184d89;
    --primary-light: #e8f1fa;
    --border: #dbe4ee;
    --soft: #ecf2f8;
    --success: #28a745;
    --shadow: 0 2px 8px rgba(34, 50, 70, 0.08);
    --shadow-lg: 0 8px 24px rgba(34, 50, 70, 0.12);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-image: linear-gradient(rgba(18, 34, 53, 0.65), rgba(18, 34, 53, 0.72)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    width: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    padding: 24px 0 60px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 0 16px;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 1.4rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Main */
.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.hero-main h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-main p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 36px;
    max-width: 520px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 95, 168, 0.35);
}

.btn-outline {
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-full {
    width: 100%;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--soft);
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 32px;
    color: var(--text);
    font-weight: 700;
}

.text-block {
    max-width: 900px;
    color: #3a4e62;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ========================================
   GRID & CARDS
   ======================================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ========================================
   ADVANTAGES
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.advantage-item {
    text-align: center;
    padding: 24px;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.advantage-item h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.advantage-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   PARTNERS
   ======================================== */
.partners-note {
    max-width: 800px;
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 1.05rem;
}

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

.brand-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.brand-chip:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--soft);
}

/* ========================================
   WORKFLOW STEPS
   ======================================== */
.steps {
    display: grid;
    gap: 20px;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
}

.step:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 600;
}

.step-content p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   REVIEWS
   ======================================== */
.review {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.2s ease;
}

.review:hover {
    box-shadow: var(--shadow);
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review p {
    margin: 0 0 16px;
    color: #3a4e62;
    line-height: 1.7;
    font-style: italic;
}

.review-author {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

/* ========================================
   CONTACTS & FORM
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 28px;
}

.contacts-list {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-centered {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text);
    text-align: center;
}

.contact-form-wrapper > p {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 1rem;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ab;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-consent input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-consent label {
    line-height: 1.5;
}

.form-consent a {
    color: var(--primary);
    text-decoration: none;
}

.form-consent a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #182433;
    color: #d9e2ec;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-icon {
    font-size: 1.4rem;
}

.footer-legal {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal p {
    margin: 2px 0;
}

.footer-legal a {
    color: #8aa4c0;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #a8c5e8;
}

.footer-contacts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0.6;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contacts a {
    color: #8aa4c0;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: #a8c5e8;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #a8c5e8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-wrapper {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-main {
        padding: 50px 20px 40px;
    }
    
    .hero-main p {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }
    
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 14px;
    }
    
    .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav::-webkit-scrollbar {
        display: none;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .advantage-item {
        padding: 16px;
    }
    
    .brands {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-chip {
        padding: 14px 10px;
        font-size: 0.9rem;
    }
    
    .step {
        padding: 18px 20px;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-legal {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1140px, 94%);
    }
    
    .topbar-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .brands {
        gap: 12px;
    }
    
    .brand-chip {
        font-size: 0.85rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
