/* =============================================
   Nexus Mobile – 1:1 design replica
   ============================================= */

:root {
    --red: #e31e24;
    --red-dark: #c4191f;
    --red-light: #f0353b;
    --white: #ffffff;
    --grey-bg: #f5f5f5;
    --grey-light: #e8e8e8;
    --grey: #999;
    --grey-text: #666;
    --grey-dark: #333a40;
    --container: 1140px;
    --font: 'Open Sans', Helvetica, Arial, sans-serif;
    --pill: 50px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--grey-text);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.logo-nexus {
    font-size: 28px;
    font-weight: 300;
    color: var(--grey-dark);
    letter-spacing: -0.5px;
}

.logo-mobile {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey);
    letter-spacing: 3px;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-text);
}

.main-nav a:hover {
    color: var(--red);
}

.nav-pill {
    border: 1.5px solid var(--red);
    border-radius: var(--pill);
    padding: 6px 20px !important;
    color: var(--red) !important;
    font-weight: 600 !important;
}

.nav-pill:hover {
    background: var(--red);
    color: var(--white) !important;
}

.btn-samoobsluha {
    display: inline-block;
    padding: 10px 28px;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--pill);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-samoobsluha:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--grey-dark);
    padding: 4px;
}

.nav-toggle .material-icons {
    font-size: 28px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    display: flex;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.hero-red {
    flex: 0 0 62%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 60px 20px 60px 0;
    color: var(--white);
    max-width: 520px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    padding: 12px 32px;
    background: var(--white);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--pill);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    position: relative;
    background: var(--grey-bg);
    overflow: hidden;
}

.hero-image img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 110%;
    width: auto;
    max-width: none;
    object-fit: cover;
    object-position: center left;
    margin-left: -80px;
    z-index: 1;
}

/* =============================================
   TARIFY
   ============================================= */
.tariffs {
    padding: 60px 0 70px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    color: var(--grey);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--grey-light);
}

.tariff-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--grey-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.tariff-card:last-child {
    border-right: none;
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.tariff-header {
    background: var(--grey-bg);
    text-align: center;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-text);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--grey-light);
}

.tariff-body {
    flex: 1;
    padding: 24px 16px;
    text-align: center;
}

.tariff-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--grey-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.tariff-price span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--grey);
    margin-top: 2px;
}

.tariff-features li {
    font-size: 12px;
    color: var(--grey);
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-light);
}

.tariff-features li:last-child {
    border-bottom: none;
}

.tariff-footer {
    background: var(--grey-bg);
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--grey-light);
}

.btn-tariff {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--grey-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--pill);
    border: 1px solid var(--grey-light);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-tariff:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Featured card */
.tariff-featured {
    box-shadow: 0 0 0 3px var(--red);
    z-index: 2;
    position: relative;
}

.tariff-featured .tariff-header {
    background: var(--red);
    color: var(--white);
    border-bottom-color: var(--red-dark);
}

.tariff-featured .tariff-footer {
    background: var(--red);
    border-top-color: var(--red-dark);
}

.btn-tariff-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    font-weight: 700;
}

.btn-tariff-white:hover {
    background: var(--grey-bg);
    color: var(--red-dark);
    border-color: var(--grey-bg);
}

/* =============================================
   PROMO
   ============================================= */
.promo {
    position: relative;
    background: var(--red) url('images/promo-bg.jpg') center/cover no-repeat;
    padding: 70px 0;
    overflow: hidden;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.92) 0%, rgba(196, 25, 31, 0.88) 100%);
    z-index: 0;
}

.promo-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Device mockups */
.promo-devices {
    position: relative;
    height: 280px;
}

.device-desktop {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 280px;
}

.device-desktop .device-screen {
    background: var(--white);
    border-radius: 6px 6px 0 0;
    border: 3px solid #ccc;
    border-bottom: none;
    height: 180px;
    overflow: hidden;
}

.screen-bar {
    height: 20px;
    background: var(--grey-light);
    border-bottom: 1px solid #ddd;
}

.screen-content {
    height: calc(100% - 20px);
    background: linear-gradient(180deg, var(--grey-bg) 0%, var(--white) 100%);
}

.device-stand {
    width: 60px;
    height: 30px;
    background: #bbb;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    position: relative;
}

.device-stand::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #aaa;
    border-radius: 3px;
}

.device-tablet {
    position: absolute;
    left: 200px;
    bottom: 20px;
    width: 120px;
    height: 160px;
    background: #333;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.device-tablet .device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--grey-bg) 0%, var(--white) 100%);
    border-radius: 2px;
}

.device-phone {
    position: absolute;
    left: 300px;
    bottom: 0;
    width: 70px;
    height: 130px;
    background: #333;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.device-phone .device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--grey-bg) 0%, var(--white) 100%);
    border-radius: 4px;
}

.promo-text {
    color: var(--white);
}

.promo-text h2 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.promo-text p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* =============================================
   WHY US
   ============================================= */
.why-us {
    padding: 70px 0 80px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

.feature-icon .material-icons {
    font-size: 32px;
    color: var(--white);
}

.feature-item p {
    font-size: 13px;
    color: var(--grey-text);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--grey-dark);
    color: #aaa;
    padding: 50px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
    gap: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-newsletter h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-newsletter p {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: #2a3036;
    border: 1px solid #444;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: var(--white);
    font-size: 13px;
    font-family: var(--font);
    outline: none;
}

.newsletter-form input::placeholder {
    color: #666;
}

.newsletter-form input:focus {
    border-color: var(--red);
}

.newsletter-form button {
    padding: 10px 18px;
    background: #555;
    color: var(--white);
    border: 1px solid #555;
    border-radius: 0 3px 3px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--red);
    border-color: var(--red);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .tariff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tariff-card:nth-child(2) {
        border-right: none;
    }

    .tariff-card:nth-child(1),
    .tariff-card:nth-child(2) {
        border-bottom: 1px solid var(--grey-light);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 24px;
    }

    .nav-pill {
        margin: 0 24px;
        text-align: center;
    }

    .btn-samoobsluha {
        display: none;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-red {
        flex: none;
        padding: 40px 0;
    }

    .hero-content {
        padding: 0;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-image {
        height: 300px;
    }

    .hero-image img {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        height: 100%;
        margin-left: 0;
        object-position: center top;
    }

    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card {
        border-right: none;
        border-bottom: 1px solid var(--grey-light);
    }

    .promo-inner {
        grid-template-columns: 1fr;
    }

    .promo-devices {
        height: 220px;
        transform: scale(0.85);
        transform-origin: left center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 26px;
    }

    .promo-text h2 {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-right: 1px solid #444;
        border-radius: 3px;
        margin-bottom: 8px;
    }

    .newsletter-form button {
        border-radius: 3px;
    }
}
