* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #c7ff66;
    --bg-dark: #0a0a0a;
    --surface: #121212;
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --border-dim: rgba(199, 255, 102, 0.15);
    --card-bg: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-tag {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-dim);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #ddd;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    font-size: 1.2rem;
    color: white;
}

.discuss-btn {
    background: var(--accent);
    color: black !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    margin-left: 15px;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .nav-menu { gap: 15px; }

    .discuss-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu, .social-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Hero */
.hero {
    padding: 0 0 60px;
}

.hero-title {
    font-size: clamp(36px, 8vw, 90px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1rem;
    max-width: 700px;
    color: #ccc;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 40px;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: black;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(199, 255, 102, 0.3);
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}

/* Stats */
.stats-grid {
    display: flex;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
}

.stat-text p:first-child {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-text p:last-child {
    font-size: 0.9rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 20px;
        margin: 40px 0;
    }

    .stat-item {
        width: 100%;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .stat-text p:first-child {
        font-size: 1.2rem;
    }
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 30px;
    padding: 30px;
    transition: 0.2s;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-tag {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* Cases */
.case-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr 0.8fr;
    gap: 40px;
    padding: 40px 0;
    align-items: center;
}

.case-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.case-desc {
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.6;
}

.case-image {
    border-radius: 30px;
    overflow: hidden;
    background: #222;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-tags {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.detail-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .case-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .case-title {
        font-size: 1.3rem;
    }

    .case-image {
        height: 180px;
    }
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.package-card {
    background: var(--card-bg);
    border-radius: 40px;
    padding: 40px;
    border: 1px solid #2a2a2a;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
}

.package-features {
    list-style: none;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.package-features i {
    color: var(--accent);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .package-card {
        padding: 30px;
    }

    .package-title {
        font-size: 1.5rem;
    }

    .package-price {
        font-size: 1.8rem;
    }
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-grid > div:last-child {
        grid-template-columns: 1fr !important;
    }
}

/* Form */
.form-row {
    display: flex;
    gap: 20px;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 60px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 200px;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 12px 0;
    color: white;
    outline: none;
    font-size: 1rem;
}

.form-group label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
    }

    .form-group {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: #080808;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-contacts .phone {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    background: #1a1a1a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.2s;
}

.social-icons a:hover {
    background: var(--accent);
    color: black;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-contacts .phone {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Responsive Grid Fixes */
@media (max-width: 1000px) {
    .about-grid,
    .blog-grid,
    .packages-grid,
    .case-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 32px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-text p:first-child {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .case-title {
        font-size: 1.2rem;
    }

    .package-card {
        padding: 25px;
    }

    .package-title {
        font-size: 1.3rem;
    }

    .package-price {
        font-size: 1.5rem;
    }

    .footer-contacts .phone {
        font-size: 1.3rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== ПРАЙС-ЛИСТ ===== */
.price-warning {
    background: rgba(199, 255, 102, 0.1);
    border: 1px solid rgba(199, 255, 102, 0.2);
    padding: 15px 20px;
    border-radius: 40px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.price-warning i {
    color: var(--accent);
    margin-right: 10px;
}

.price-warning span {
    color: #a0a0a0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.price-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 40px;
    padding: 30px;
    transition: 0.3s;
}

.price-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(199, 255, 102, 0.1);
}

.price-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.price-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(199, 255, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card-icon i {
    color: var(--accent);
    font-size: 24px;
}

.price-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.price-subtitle {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 14px;
}

.price-section {
    margin-bottom: 20px;
}

.price-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-section-header i {
    color: var(--accent);
    width: 25px;
}

.price-section-header span {
    color: white;
    font-weight: 500;
}

.price-items {
    padding-left: 35px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-item-name {
    color: #a0a0a0;
}

.price-item-value {
    color: white;
    font-weight: 600;
}

.price-item-note {
    color: #a0a0a0;
    font-size: 12px;
    margin-top: 2px;
}

.price-footer-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(199, 255, 102, 0.3);
    border-radius: 40px;
    padding: 30px;
    grid-column: span 3;
}

.price-footer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-footer-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-footer-icon i {
    color: #0a0a0a;
    font-size: 24px;
}

.price-footer-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.price-footer-text {
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.price-contacts {
    background: rgba(199, 255, 102, 0.05);
    border: 1px solid rgba(199, 255, 102, 0.1);
    border-radius: 60px;
    padding: 20px 30px;
}

.price-contacts p {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.contacts-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--accent);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--accent);
}

/* ===== АДАПТАЦИЯ ПРАЙС-ЛИСТА ПОД ТЕЛЕФОНЫ ===== */
@media (max-width: 1200px) {
    .price-footer-card {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-footer-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .price-warning {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 30px;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .price-card {
        padding: 25px;
        border-radius: 30px;
    }

    .price-card-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .price-card-icon {
        width: 45px;
        height: 45px;
    }

    .price-card-icon i {
        font-size: 20px;
    }

    .price-card h3 {
        font-size: 20px;
    }

    .price-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .price-section {
        margin-bottom: 20px;
    }

    .price-section-header {
        margin-bottom: 12px;
    }

    .price-section-header i {
        font-size: 14px;
    }

    .price-section-header span {
        font-size: 16px;
    }

    .price-items {
        padding-left: 25px;
    }

    .price-item {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }

    .price-item-name {
        font-size: 14px;
    }

    .price-item-value {
        font-size: 15px;
    }

    .price-footer-card {
        grid-column: span 1;
        padding: 25px;
        border-radius: 30px;
    }

    .price-footer-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .price-footer-icon {
        width: 45px;
        height: 45px;
    }

    .price-footer-icon i {
        font-size: 20px;
    }

    .price-footer-header h3 {
        font-size: 20px;
    }

    .price-footer-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .price-contacts {
        padding: 15px 20px;
        border-radius: 40px;
    }

    .price-contacts p {
        font-size: 16px;
    }

    .contacts-grid {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item i {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .price-warning {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 25px;
    }

    .price-card {
        padding: 20px;
        border-radius: 25px;
    }

    .price-card-header {
        gap: 10px;
    }

    .price-card-icon {
        width: 40px;
        height: 40px;
    }

    .price-card-icon i {
        font-size: 18px;
    }

    .price-card h3 {
        font-size: 18px;
    }

    .price-section-header span {
        font-size: 15px;
    }

    .price-items {
        padding-left: 20px;
    }

    .price-item-name {
        font-size: 13px;
    }

    .price-item-value {
        font-size: 14px;
    }

    .price-footer-card {
        padding: 20px;
    }

    .price-footer-icon {
        width: 40px;
        height: 40px;
    }

    .price-footer-icon i {
        font-size: 18px;
    }

    .price-footer-header h3 {
        font-size: 18px;
    }

    .price-footer-text {
        font-size: 13px;
    }

    .price-contacts p {
        font-size: 15px;
    }

    .contact-item {
        font-size: 13px;
    }
}

/* ===== КНОПКА СКРОЛЛА ВВЕРХ ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex !important; /* принудительно */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999; /* максимальный z-index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 255, 102, 0.3);
    pointer-events: none; /* неактивна пока скрыта */
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto; /* активна когда видна */
}

.scroll-to-top:hover {
    background: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(199, 255, 102, 0.5);
}

.scroll-to-top i {
    color: #0a0a0a;
    font-size: 22px;
    transition: color 0.3s;
}

.scroll-to-top:hover i {
    color: var(--accent);
}

/* Анимация */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.scroll-to-top.show {
    animation: pulse 2s infinite;
}

/* Адаптация */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top i {
        font-size: 18px;
    }
}