/* ============================================
   Pavel Černín – Modern One-Pager
   ============================================ */

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

:root {
    --primary: #1a365d;
    --primary-light: #2d5a9e;
    --accent: #EB0000;
    --accent-light: #ff2a2a;
    --accent-dark: #c50000;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f7f8fc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    color: var(--primary);
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-subtitle {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(235,0,0,.06);
}

.nav-link--cta {
    background: var(--accent);
    color: #fff !important;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background: var(--accent-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,54,93,.85) 0%, rgba(15,23,42,.7) 50%, rgba(235,0,0,.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    max-width: 680px;
}

.hero-tagline {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: normal;
    color: #ff6b6b;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235,0,0,.3);
}

.btn-outline {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255,255,255,.25);
    border-color: #fff;
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 56px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services --- */
.section--services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(235,0,0,.08), rgba(235,0,0,.04));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-card p {
    font-size: .92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Why Me --- */
.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 36px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.why-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.why-item p {
    font-size: .92rem;
    color: var(--text-light);
}

.why-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-alt);
    padding: 28px 32px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Calculators --- */
.section--calc {
    background: var(--bg-alt);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.calc-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.calc-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.calc-field input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--text);
    transition: border-color var(--transition);
    background: var(--bg-alt);
}

.calc-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(235,0,0,.1);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-result {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
    margin-top: 8px;
}

.calc-result-label {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .8;
    margin-bottom: 4px;
}

.calc-result-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

/* --- Tips --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tip-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.tip-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(235,0,0,.12);
    line-height: 1;
    margin-bottom: 12px;
}

.tip-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.tip-card p {
    font-size: .92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Videos --- */
.section--videos {
    background: var(--bg-alt);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 20px 24px 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.video-card p {
    padding: 0 24px 20px;
    font-size: .88rem;
    color: var(--text-light);
}

/* --- About --- */
.section--about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    aspect-ratio: 3/4;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
}

.about-image--placeholder::after {
    content: 'PC';
    color: rgba(255,255,255,.12);
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: -4px;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
}

.about-content {
    padding: 20px 0;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
    margin-top: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-company {
    margin-top: 28px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.about-company p {
    margin-bottom: 4px;
    font-size: .92rem;
}

/* --- Contact --- */
.section--contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.contact-card h3 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-card a, .contact-card p {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-note {
    display: block;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Form --- */
.contact-form-wrapper {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-field input,
.form-field textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: var(--font);
    color: var(--text);
    transition: all var(--transition);
    background: var(--bg-alt);
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(235,0,0,.1);
    background: #fff;
}

.form-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

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

.form-field--checkbox label {
    text-transform: none;
    font-weight: 400;
    font-size: .88rem;
    cursor: pointer;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.4);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: .9rem;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,.7);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(235,0,0,.3);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .why-stats {
        flex-direction: row;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }

    .nav-link--cta {
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 72px 0;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-stats {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .calc-card {
        padding: 24px;
    }
}
