/* ===================================================
   НОВАЯ КУЛЬТУРА
   STYLE.CSS
=================================================== */

:root {
    --bg: #0b0b0b;
    --bg2: #131313;
    --card: #1b1b1b;
    --card2: #242424;
    --border: #2f2f2f;
    --border-light: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text2: #bdbdbd;
    --text3: #888888;
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.05);
    --accent-glow: rgba(255, 255, 255, 0.08);
    --radius: 18px;
    --transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 35px rgba(0, 0, 0, .45);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: min(1320px, 92%);
    margin: auto;
}

/* ======================================== */
/* NOISE */
/* ======================================== */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .03;
    background-image: radial-gradient(#fff 1px, transparent 0);
    background-size: 18px 18px;
    z-index: 1;
}

/* ======================================== */
/* SECTIONS */
/* ======================================== */

section {
    position: relative;
    z-index: 2;
    padding: 110px 0;
}

/* ======================================== */
/* SECTION TITLE */
/* ======================================== */

.section-title {
    margin-bottom: 70px;
}

.section-title span {
    display: inline-block;
    color: var(--accent);
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    opacity: 0.7;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
}

.section-title p {
    margin-top: 20px;
    max-width: 700px;
    color: var(--text2);
    line-height: 1.7;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    background: var(--accent);
    margin-top: 22px;
    opacity: 0.5;
}

/* ======================================== */
/* BUTTONS */
/* ======================================== */

.btn {
    height: 62px;
    padding: 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    transition: .35s;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(255, 255, 255, .15);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: #191919;
    color: var(--text);
}

.btn-secondary:hover {
    background: #2a2a2a;
    border-color: var(--accent);
}

/* ======================================== */
/* HEADER */
/* ======================================== */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 500;
    backdrop-filter: blur(20px);
    background: rgba(8, 8, 8, .85);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header .container {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo-top {
    color: var(--accent);
    font-size: 15px;
    opacity: 0.7;
    letter-spacing: 3px;
}

.logo-bottom {
    font-size: 23px;
}

.menu {
    display: flex;
    gap: 45px;
    flex-shrink: 0;
}

.menu a {
    position: relative;
    color: var(--text2);
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
}

.menu a:hover {
    color: var(--accent);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.header-phone {
    padding: 14px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-phone:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* ======================================== */
/* БУРГЕР-МЕНЮ */
/* ======================================== */

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    flex-shrink: 0;
}

.burger-menu span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-link {
    color: var(--text2);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-link:hover {
    color: var(--text);
}

.mobile-menu-phone {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    padding: 16px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 8px;
}

/* ======================================== */
/* HERO */
/* ======================================== */

.hero {
    padding-top: 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.02) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.02) 0%, transparent 60%),
                var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 80px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 100px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.hero h1 {
    font-size: 74px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 28px;
}

.hero h1 span {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text2);
    line-height: 1.8;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin: 50px 0;
}

.hero-info {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-item {
    width: 200px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 16px;
    transition: var(--transition);
}

.hero-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.hero-item strong {
    display: block;
    font-size: 20px;
    margin-bottom: 12px;
}

.hero-item span {
    color: var(--text2);
    line-height: 1.6;
    font-size: 14px;
}

/* ======================================== */
/* HERO VISUAL */
/* ======================================== */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .06);
    transform: rotate(45deg);
    transition: var(--transition);
}

.frame-1 {
    width: 420px;
    height: 420px;
}

.frame-2 {
    width: 320px;
    height: 320px;
}

.frame-3 {
    width: 220px;
    height: 220px;
}

.hero-device-card {
    position: relative;
    width: 320px;
    padding: 40px;
    background: linear-gradient(180deg, #242424, #171717);
    border: 1px solid #313131;
    border-radius: 22px;
    box-shadow: var(--shadow);
    z-index: 3;
    cursor: default;
}

.hero-device-card-top {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 28px;
    opacity: 0.6;
}

.hero-device-card-price {
    font-size: 26px;
    color: #aaa;
}

.hero-device-card-price span {
    display: block;
    color: #fff;
    font-size: 58px;
    font-weight: 900;
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-device-card-text {
    margin-top: 35px;
    line-height: 1.8;
    color: var(--text2);
    font-size: 15px;
}

/* ======================================== */
/* CALCULATOR */
/* ======================================== */

.calculator {
    background: #0f0f0f;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* ======================================== */
/* DEVICE GRID */
/* ======================================== */

.device-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 70px;
}

.device-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.device-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.device-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transition: left 0.6s ease;
}

.device-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.device-card:hover::before {
    opacity: 1;
}

.device-card:hover::after {
    left: 100%;
}

.device-card.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

.device-card.active .device-icon {
    transform: scale(1.05);
}

.device-card .device-icon {
    font-size: 28px;
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    line-height: 1;
    filter: grayscale(0.6);
    opacity: 0.8;
}

.device-card.active .device-icon {
    filter: grayscale(0);
    opacity: 1;
}

.device-card:hover .device-icon {
    transform: scale(1.1);
    filter: grayscale(0);
    opacity: 1;
}

.device-card .device-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.device-card.active .device-name {
    color: var(--accent);
}

.device-card:hover .device-name {
    color: var(--accent);
}

/* ======================================== */
/* CALCULATOR LAYOUT */
/* ======================================== */

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 45px;
    align-items: flex-start;
}

.calculator-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ======================================== */
/* STEP BLOCK */
/* ======================================== */

.step-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 38px;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.step-header {
    margin-bottom: 35px;
}

.step-number {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.6;
}

.step-header h3 {
    font-size: 34px;
    font-weight: 800;
}

/* ======================================== */
/* IPHONE MODELS - СВОРАЧИВАНИЕ */
/* ======================================== */

.iphone-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Свернутое состояние */
.iphone-models.models-collapsed {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    min-height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modelsCollapse 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modelsCollapse {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 800px;
        padding: 38px;
        gap: 18px;
    }
    50% {
        opacity: 0.5;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        max-height: 120px;
        padding: 16px 20px;
        gap: 12px;
    }
}

@keyframes modelsExpand {
    0% {
        opacity: 0.5;
        transform: scale(0.97);
        max-height: 120px;
        padding: 16px 20px;
        gap: 12px;
    }
    50% {
        opacity: 0.7;
        transform: scale(0.99);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        max-height: 800px;
        padding: 38px;
        gap: 18px;
    }
}

.iphone-models:not(.models-collapsed) {
    animation: modelsExpand 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.iphone-models .model-card.selected-display {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    cursor: default;
    font-size: 18px;
    padding: 14px 20px;
    min-height: 56px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.iphone-models.models-collapsed .model-card:not(.selected-display) {
    display: none !important;
}

.back-to-models {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text2);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.back-to-models:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* ======================================== */
/* MODEL CARD */
/* ======================================== */

.model-card {
    min-height: 78px;
    background: #191919;
    color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding: 0 16px;
}

.model-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    color: #ffffff;
}

.model-card.active {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

/* ======================================== */
/* OLD IPHONE */
/* ======================================== */

.old-iphone {
    grid-column: 1/-1;
    background: #202020;
    border: 2px dashed #444;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: var(--transition);
}

.old-iphone:hover {
    border-color: var(--accent);
    background: #2a2a2a;
}

.old-iphone strong {
    display: block;
    font-size: 22px;
    margin-bottom: 18px;
}

.old-iphone span {
    color: var(--text2);
}

.old-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 30px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 25px;
    transition: var(--transition);
}

.old-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* ======================================== */
/* SIDEBAR */
/* ======================================== */

.calculator-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-box {
    background: linear-gradient(180deg, #202020, #171717);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 35px;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.price-box span {
    color: var(--text2);
    display: block;
    margin-bottom: 18px;
}

.current-price {
    font-size: 54px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.price-box small {
    color: #999;
    line-height: 1.6;
    font-size: 13px;
}

/* ======================================== */
/* SUMMARY BOX */
/* ======================================== */

.summary-box {
    background: #181818;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.summary-box h4 {
    margin-bottom: 25px;
    font-size: 22px;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.summary-box li:last-child {
    border: none;
}

.summary-box span {
    color: var(--text2);
    font-size: 14px;
}

.summary-box strong {
    color: #fff;
    font-weight: 600;
}

/* ======================================== */
/* OPTION GRID */
/* ======================================== */

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.option {
    min-height: 72px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    padding: 0 16px;
    text-align: center;
    color: #ffffff;
}

.option:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: #2a2a2a;
    color: #ffffff;
}

.option.active {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

/* ======================================== */
/* FORM ELEMENTS */
/* ======================================== */

textarea,
input {
    width: 100%;
    background: #181818;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 16px;
    transition: var(--transition);
}

textarea:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

.full {
    width: 100%;
}

/* ======================================== */
/* ADVANTAGES */
/* ======================================== */

.advantages {
    background: #0b0b0b;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.advantage-card {
    position: relative;
    overflow: hidden;
    padding: 45px;
    background: linear-gradient(180deg, #181818, #101010);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.advantage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.advantage-card:hover::before {
    transform: scaleY(1);
}

.advantage-number {
    font-size: 58px;
    font-weight: 900;
    color: rgba(255, 255, 255, .05);
    margin-bottom: 20px;
    line-height: 1;
}

.advantage-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.advantage-card p {
    color: var(--text2);
    line-height: 1.8;
}

/* ======================================== */
/* STEPS */
/* ======================================== */

.steps {
    background: #111;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-circle {
    width: 82px;
    height: 82px;
    margin: auto;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    transform: rotate(45deg);
    transition: var(--transition);
    position: relative;
}

.step-circle::before {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    background: #191919;
    z-index: -1;
}

.step-item:hover .step-circle {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: rotate(45deg) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.step-item h3 {
    margin-bottom: 18px;
    font-size: 24px;
}

.step-item p {
    color: var(--text2);
    line-height: 1.7;
}

/* ======================================== */
/* REVIEWS */
/* ======================================== */

.reviews {
    background: #090909;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #181818;
    border: 1px solid var(--border);
    padding: 40px;
    transition: var(--transition);
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.review-stars {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.review-card p {
    line-height: 1.8;
    color: var(--text2);
    margin-bottom: 30px;
}

.review-card strong {
    font-size: 18px;
}

/* ======================================== */
/* CONTACTS */
/* ======================================== */

.contacts {
    background: #111;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-card {
    background: #191919;
    border: 1px solid var(--border);
    padding: 35px;
    transition: var(--transition);
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.contact-label {
    display: block;
    color: var(--accent);
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-size: 13px;
    opacity: 0.6;
}

.contact-card a,
.contact-card p {
    font-size: 22px;
    font-weight: 700;
}

/* ======================================== */
/* APPLICATION */
/* ======================================== */

.application {
    background: #0d0d0d;
}

.application-box {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 70px;
    align-items: start;
    padding: 60px;
    background: #181818;
    border: 1px solid var(--border);
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.application-left span {
    color: var(--accent);
    letter-spacing: 3px;
    opacity: 0.6;
}

.application-left h2 {
    font-size: 46px;
    margin: 20px 0;
}

.application-left p {
    color: var(--text2);
    line-height: 1.8;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.application-form small {
    color: #888;
    line-height: 1.6;
    font-size: 13px;
}

/* ======================================== */
/* PRICE NOTE */
/* ======================================== */

.price-note {
    color: var(--text2) !important;
    font-size: 15px !important;
    text-align: center;
    margin-top: 16px;
    opacity: 1 !important;
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.price-note i {
    color: var(--accent);
    opacity: 0.7;
    margin-right: 8px;
}

/* ======================================== */
/* FOOTER */
/* ======================================== */

.footer {
    background: #050505;
    border-top: 1px solid var(--border-light);
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text2);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 8px;
}

.footer-copy .copyright {
    color: #666;
    font-size: 14px;
}

.footer-copy .offer-text {
    color: var(--text2);
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.3px;
    line-height: 1.6;
    max-width: 100%;
    padding: 0 10px;
}

.footer-copy .offer-text:hover {
    opacity: 1;
    color: var(--text);
}

/* ======================================== */
/* MODAL WINDOWS */
/* ======================================== */

.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
}

.contact-modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.contact-modal-close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-modal-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.contact-option-btn {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-option-btn i {
    font-size: 18px;
}

.contact-option-btn:hover {
    border-color: var(--accent);
    background: var(--card2);
    transform: translateY(-2px);
}

.contact-option-btn.selected {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.contact-option-btn .fa-phone { color: #4CAF50; }
.contact-option-btn .fa-telegram { color: #0088cc; }
.contact-option-btn .fa-vk { color: #4a76a8; }
.contact-option-btn .fa-whatsapp { color: #25D366; }
.contact-option-btn .fa-sms { color: #ff6b35; }

.contact-input-group {
    display: none;
    margin-bottom: 1.5rem;
}

.contact-input-group.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.contact-input-group label {
    display: block;
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-input-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: var(--transition);
}

.contact-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.contact-consent {
    margin: 1.5rem 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    min-width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: 700;
}

.custom-checkbox .checkmark:hover {
    border-color: var(--accent);
}

.custom-checkbox span:last-child {
    color: var(--text2);
    font-size: 13px;
    line-height: 1.6;
}

.custom-checkbox a {
    color: var(--accent);
    text-decoration: underline;
    transition: var(--transition);
}

.custom-checkbox a:hover {
    opacity: 0.7;
}

/* ======================================== */
/* DOCUMENT MODALS */
/* ======================================== */

.document-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
}

.document-modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    margin: 3% auto;
    padding: 2rem;
    width: 92%;
    max-width: 900px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.document-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.document-modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.document-modal-close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 8px;
    line-height: 1;
    z-index: 10;
    position: relative;
}

.document-modal-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.document-subtitle {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.document-modal-body {
    color: var(--text2);
    line-height: 1.8;
}

.document-modal-body h3 {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document-modal-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.document-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.document-modal-body li {
    margin-bottom: 0.5rem;
}

.document-modal-body strong {
    color: var(--text);
}

/* ======================================== */
/* NOTIFICATIONS */
/* ======================================== */

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    max-width: 420px;
    min-width: 280px;
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text2);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 4px;
}

.notification-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

/* ======================================== */
/* DECOR ELEMENTS */
/* ======================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    top: -300px;
    right: -300px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, .03), transparent 70%);
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

/* ======================================== */
/* SCROLLBAR */
/* ======================================== */

::selection {
    background: var(--accent);
    color: #000;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

html {
    scrollbar-color: #333 #0a0a0a;
}

/* ======================================== */
/* GLOW EFFECTS */
/* ======================================== */

.glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    filter: blur(120px);
    pointer-events: none;
}

/* ======================================== */
/* HOVER SHINE EFFECTS */
/* ======================================== */

.advantage-card::after,
.review-card::after,
.contact-card::after,
.step-block::after,
.summary-box::after,
.price-box::after,
.application-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .02), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.advantage-card:hover::after,
.review-card:hover::after,
.contact-card:hover::after,
.step-block:hover::after,
.summary-box:hover::after,
.price-box:hover::after,
.application-box:hover::after {
    animation: shine 1s linear;
}

@keyframes shine {
    from { left: -120%; }
    to { left: 180%; }
}

/* ======================================== */
/* WILL CHANGE */
/* ======================================== */

.device-card,
.model-card,
.option,
.contact-card,
.review-card,
.advantage-card {
    will-change: transform;
}

/* ======================================== */
/* UTILITIES */
/* ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.w-100 {
    width: 100%;
}

.opacity-50 {
    opacity: .5;
}

.pointer {
    cursor: pointer;
}

/* ======================================== */
/* АДАПТИВ */
/* ======================================== */

@media (max-width: 1400px) {
    .container { width: min(1200px, 94%); }
    .hero-grid { grid-template-columns: 1fr 420px; }
    .hero h1 { font-size: 64px; }
    .current-price { font-size: 46px; }
}

@media (max-width: 1200px) {
    .device-grid { grid-template-columns: repeat(4, 1fr); }
    .hero { min-height: auto; padding-top: 150px; }
    .hero-grid { grid-template-columns: 1fr; gap: 70px; }
    .hero-visual { order: -1; }
    .calculator-layout { grid-template-columns: 1fr; }
    .calculator-sidebar { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .application-box { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .device-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .device-card { min-height: 100px; padding: 16px 10px; }
    .device-card .device-icon { font-size: 24px; margin-bottom: 6px; }
    .device-card .device-name { font-size: 12px; }
    
    .header .container { height: 74px; gap: 12px; }
    .menu { display: none; }
    .header-phone { display: none; }
    .burger-menu { display: flex; }
    .mobile-menu { top: 74px; }
    
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 52px; }
    .hero p { font-size: 18px; }
    .hero-info { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .hero-item { width: 100%; padding: 18px; }
    
    .section-title h2 { font-size: 38px; }
    .iphone-models { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .model-card { min-height: 64px; font-size: 14px; padding: 0 12px; }
    .review-card { padding: 30px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .calculator-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 32px; }
    .section-title p { font-size: 15px; }
    
    .device-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 40px; }
    .device-card { min-height: 80px; padding: 12px 8px; border-radius: 12px; }
    .device-card .device-icon { font-size: 20px; margin-bottom: 4px; }
    .device-card .device-name { font-size: 10px; }
    
    .step-block { padding: 24px 20px; border-radius: 16px; }
    .step-header { margin-bottom: 24px; }
    .step-header h3 { font-size: 24px; }
    .step-number { font-size: 11px; }
    
    .option-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .option { min-height: 56px; font-size: 14px; padding: 0 12px; }
    
    .iphone-models { grid-template-columns: 1fr 1fr; gap: 10px; }
    .model-card { min-height: 56px; font-size: 13px; }
    .old-iphone { padding: 24px 16px; }
    .old-iphone strong { font-size: 18px; }
    
    .calculator-layout { gap: 30px; }
    .price-box { padding: 24px; border-radius: 16px; }
    .current-price { font-size: 36px; }
    .summary-box { padding: 24px; border-radius: 16px; }
    .summary-box li { padding: 12px 0; font-size: 14px; }
    
    .hero { padding-top: 120px; min-height: auto; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-buttons { flex-direction: column; gap: 12px; margin: 30px 0; }
    .btn { width: 100%; height: 52px; font-size: 15px; }
    .hero-info { gap: 12px; }
    .hero-item { padding: 16px; width: 100%; }
    .hero-item strong { font-size: 18px; }
    .hero-item span { font-size: 13px; }
    
    .hero-visual { order: -1; }
    .hero-device-card { width: 100%; max-width: 280px; padding: 28px 24px; }
    .hero-device-card-price span { font-size: 40px; }
    .hero-device-card-text { font-size: 13px; margin-top: 20px; }
    .frame-1 { width: 300px; height: 300px; }
    .frame-2 { width: 220px; height: 220px; }
    .frame-3 { width: 140px; height: 140px; }
    
    .advantages-grid { gap: 16px; }
    .advantage-card { padding: 28px 24px; }
    .advantage-number { font-size: 40px; }
    .advantage-card h3 { font-size: 22px; }
    .advantage-card p { font-size: 14px; }
    
    .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .step-circle { width: 64px; height: 64px; font-size: 20px; margin-bottom: 20px; }
    .step-circle::before { width: 48px; height: 48px; }
    .step-item h3 { font-size: 18px; margin-bottom: 12px; }
    .step-item p { font-size: 14px; }
    
    .reviews-grid { gap: 16px; }
    .review-card { padding: 24px; }
    .review-card p { font-size: 14px; }
    
    .contacts-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .contact-card { padding: 24px 20px; }
    .contact-card a, .contact-card p { font-size: 16px; }
    .contact-label { font-size: 11px; }
    
    .application-box { padding: 30px 20px; gap: 30px; }
    .application-left h2 { font-size: 28px; }
    .application-left p { font-size: 14px; }
    .application-form input, .application-form textarea { padding: 14px 16px; font-size: 14px; }
    
    .footer { padding: 40px 0; }
    .footer-logo h3 { font-size: 24px; }
    .footer-copy .copyright { font-size: 14px; }
    .footer-copy .offer-text { font-size: 13px; opacity: 1; color: var(--text); padding: 8px 16px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); margin: 0 10px; line-height: 1.5; }
    
    .price-note { font-size: 13px !important; padding: 10px 14px; margin-top: 14px; }
    .contact-options { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .contact-option-btn { padding: 12px 14px; font-size: 13px; border-radius: 12px; }
    .contact-option-btn i { font-size: 16px; }
    
    .contact-modal-content { margin: 10% auto; padding: 1.5rem; }
    .contact-modal-header h3 { font-size: 20px; }
    
    .notification { top: 16px; right: 16px; left: 16px; max-width: none; min-width: auto; padding: 14px 18px; }
    .notification-message { font-size: 14px; }
    
    .document-modal-content { padding: 1.5rem; margin: 5% auto; }
    .document-modal-header h2 { font-size: 22px; }
    .document-modal-body h3 { font-size: 18px; }
}

@media (max-width: 576px) {
    .device-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .device-card { min-height: 68px; padding: 10px 6px; border-radius: 10px; }
    .device-card .device-icon { font-size: 16px; margin-bottom: 3px; }
    .device-card .device-name { font-size: 9px; }
    
    .iphone-models.models-collapsed { padding: 10px 12px; gap: 8px; border-radius: 10px; }
    .iphone-models .model-card.selected-display { font-size: 14px !important; padding: 10px 12px !important; min-height: 42px !important; border-radius: 8px !important; }
    .back-to-models { font-size: 12px !important; padding: 8px 12px !important; border-radius: 8px !important; }
    
    .footer-copy .offer-text { font-size: 12px; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; margin: 0 8px; line-height: 1.6; font-weight: 500; color: #ffffff; }
    
    .contact-options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .contact-option-btn { padding: 10px 12px; font-size: 12px; border-radius: 10px; }
    .contact-option-btn i { font-size: 14px; }
    
    .header .container { height: 60px; gap: 8px; }
    .logo-top { font-size: 10px; }
    .logo-bottom { font-size: 15px; }
    .burger-menu span { width: 20px; height: 2px; }
    .burger-menu { gap: 4px; padding: 4px; }
    .mobile-menu { top: 60px; }
    .mobile-menu-link { font-size: 15px; padding: 10px 0; }
    .mobile-menu-phone { font-size: 16px; padding: 12px 0; }
    
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 30px; }
    .hero-label { font-size: 10px; padding: 8px 14px; margin-bottom: 16px; }
    .hero p { font-size: 14px; }
    
    .hero-device-card { max-width: 240px; padding: 20px; }
    .hero-device-card-price span { font-size: 32px; }
    .hero-device-card-text { font-size: 12px; margin-top: 16px; }
    .frame-1 { width: 240px; height: 240px; }
    .frame-2 { width: 180px; height: 180px; }
    .frame-3 { width: 120px; height: 120px; }
    
    .step-block { padding: 18px 14px; border-radius: 12px; }
    .step-header h3 { font-size: 20px; }
    .step-number { font-size: 10px; }
    
    .option-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .option { min-height: 48px; font-size: 12px; padding: 0 8px; border-radius: 10px; }
    
    .iphone-models { grid-template-columns: 1fr 1fr; gap: 8px; }
    .model-card { min-height: 48px; font-size: 12px; border-radius: 10px; padding: 0 8px; }
    .old-iphone { padding: 18px 12px; border-radius: 12px; }
    .old-iphone strong { font-size: 15px; }
    .old-iphone span { font-size: 13px; }
    .old-button { height: 44px; padding: 0 20px; font-size: 13px; border-radius: 10px; margin-top: 16px; }
    
    .current-price { font-size: 30px; }
    .price-box small { font-size: 11px; }
    .summary-box h4 { font-size: 18px; margin-bottom: 16px; }
    .summary-box li { padding: 10px 0; font-size: 13px; }
    .summary-box span { font-size: 12px; }
    .summary-box strong { font-size: 13px; }
    
    .price-note { font-size: 12px !important; padding: 8px 12px; margin-top: 12px; border-radius: 8px; }
    
    .advantages-grid { gap: 12px; }
    .advantage-card { padding: 20px 16px; }
    .advantage-number { font-size: 32px; margin-bottom: 12px; }
    .advantage-card h3 { font-size: 18px; margin-bottom: 12px; }
    .advantage-card p { font-size: 13px; }
    
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .contacts-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-card { padding: 18px 16px; }
    .contact-card a, .contact-card p { font-size: 15px; }
    
    .application-box { padding: 24px 16px; gap: 20px; }
    .application-left h2 { font-size: 24px; margin: 12px 0; }
    .application-left span { font-size: 12px; letter-spacing: 2px; }
    
    .footer-grid { gap: 30px; }
    .footer-links a { font-size: 14px; }
    
    .contact-modal-content { padding: 1rem; margin: 5% auto; border-radius: 16px; }
    .contact-options { grid-template-columns: 1fr 1fr; gap: 8px; }
    .contact-option-btn { padding: 10px 12px; font-size: 12px; border-radius: 10px; }
    .contact-input-group input { padding: 10px 14px; font-size: 14px; }
    .contact-modal-header h3 { font-size: 18px; }
    .contact-modal-close { font-size: 24px; }
    
    .document-modal-content { padding: 1rem; margin: 3% auto; width: 96%; border-radius: 16px; }
    .document-modal-header h2 { font-size: 18px; }
    .document-modal-close { font-size: 24px; }
    .document-modal-body h3 { font-size: 16px; }
    .document-modal-body p { font-size: 14px; }
}

@media (max-width: 420px) {
    .device-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .device-card { min-height: 60px; padding: 8px 4px; border-radius: 8px; }
    .device-card .device-icon { font-size: 14px; }
    .device-card .device-name { font-size: 8px; }
    
    .hero h1 { font-size: 26px; }
    .hero-buttons { gap: 10px; margin: 20px 0; }
    .btn { height: 46px; font-size: 13px; padding: 0 20px; }
    
    .step-block { padding: 14px 10px; }
    .step-header h3 { font-size: 18px; }
    .option-grid { gap: 6px; }
    .option { min-height: 42px; font-size: 11px; padding: 0 6px; border-radius: 8px; }
    
    .iphone-models { gap: 6px; }
    .model-card { min-height: 42px; font-size: 11px; border-radius: 8px; padding: 0 6px; }
    
    .current-price { font-size: 26px; }
    .logo-bottom { font-size: 13px; }
    .logo-top { font-size: 9px; }
    
    .mobile-menu-link { font-size: 14px; padding: 8px 0; }
    .mobile-menu-phone { font-size: 14px; padding: 10px 0; }
}
/* ======================================== */
/* FOOTER - ОФЕРТА В РАМКЕ */
/* ======================================== */

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 12px;
}

.footer-copy .copyright {
    color: #666;
    font-size: 14px;
}

.offer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 24px;
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
}

.offer-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-copy .offer-text {
    color: var(--text2);
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin: 0;
}

.footer-copy .offer-text:hover {
    opacity: 1;
    color: var(--text);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .offer-box {
        padding: 12px 16px;
        border-radius: 10px;
        max-width: 100%;
    }
    
    .footer-copy .offer-text {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .offer-box {
        padding: 10px 14px;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.08);
    }
    
    .footer-copy .offer-text {
        font-size: 12px;
        font-weight: 500;
        color: #ffffff;
        opacity: 1;
    }
}
/* ======================================== */
/* СТРАНИЦЫ ДОКУМЕНТОВ */
/* ======================================== */

.document-page {
    padding-top: 180px;
    padding-bottom: 110px;
    min-height: 100vh;
    background: var(--bg);
}

.document-page-header {
    margin-bottom: 50px;
    text-align: center;
}

.document-page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.document-page-subtitle {
    color: var(--text2);
    font-size: 16px;
    font-weight: 400;
}

.document-page-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 50px 60px;
    clip-path: polygon(
        0 14px,
        14px 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        14px 100%,
        0 calc(100% - 14px)
    );
}

.document-page-content h3 {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 18px;
}

.document-page-content h3:first-child {
    margin-top: 0;
}

.document-page-content p {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.document-page-content ul {
    margin-bottom: 18px;
    padding-left: 24px;
}

.document-page-content ul li {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 8px;
}

.document-page-content strong {
    color: var(--text);
}

.document-page-footer {
    margin-top: 40px;
    text-align: center;
}

.document-page-footer .btn {
    min-width: 200px;
}

/* Адаптив для страниц документов */
@media (max-width: 992px) {
    .document-page {
        padding-top: 140px;
        padding-bottom: 70px;
    }
    
    .document-page-header h1 {
        font-size: 36px;
    }
    
    .document-page-content {
        padding: 35px 30px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .document-page {
        padding-top: 120px;
        padding-bottom: 50px;
    }
    
    .document-page-header h1 {
        font-size: 28px;
    }
    
    .document-page-subtitle {
        font-size: 14px;
    }
    
    .document-page-content {
        padding: 25px 20px;
        border-radius: 14px;
    }
    
    .document-page-content h3 {
        font-size: 18px;
    }
    
    .document-page-content p,
    .document-page-content ul li {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .document-page {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .document-page-header h1 {
        font-size: 22px;
    }
    
    .document-page-content {
        padding: 18px 14px;
        border-radius: 10px;
    }
    
    .document-page-content h3 {
        font-size: 16px;
    }
    
    .document-page-content p,
    .document-page-content ul li {
        font-size: 13px;
    }
}
/* ======================================== */
/* IPHONE MODELS - РАСШИРЕННАЯ СЕТКА */
/* ======================================== */

.iphone-models {
    display: block;
    position: relative;
}

.models-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 10px !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 0 !important;
    width: 100%;
}

.model-card {
    min-height: 56px;
    padding: 10px 14px;
    background: #191919;
    color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: #242424;
}

.model-card.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Свернутое состояние */
.iphone-models.models-collapsed .models-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    max-height: none !important;
    overflow: visible !important;
}

.iphone-models.models-collapsed .model-card {
    display: none !important;
}

.iphone-models.models-collapsed .model-card.selected-display {
    display: block !important;
    width: 100%;
    font-size: 16px;
    padding: 12px 18px;
    min-height: 52px;
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Кнопка "Назад" */
.back-to-models {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text2);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

.back-to-models:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* Старые модели */
.old-iphone {
    grid-column: 1 / -1;
    background: #202020;
    border: 2px dashed #444;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 10px;
    transition: var(--transition);
}

.old-iphone:hover {
    border-color: var(--accent);
    background: #2a2a2a;
}

.old-iphone strong {
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
}

.old-iphone span {
    color: var(--text2);
    font-size: 14px;
}

.old-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.old-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

/* ======================================== */
/* АДАПТИВ ДЛЯ МОДЕЛЕЙ */
/* ======================================== */

@media (max-width: 992px) {
    .models-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 8px !important;
    }
    
    .model-card {
        font-size: 12px;
        min-height: 48px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .models-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 6px !important;
    }
    
    .model-card {
        font-size: 11px;
        min-height: 42px;
        padding: 6px 10px;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .models-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 5px !important;
    }
    
    .model-card {
        font-size: 10px;
        min-height: 36px;
        padding: 4px 8px;
        border-radius: 8px;
    }
}