/*
Theme Name: ЗАМЕТНЫЕ
Theme URI: https://zm-style.ru
Author: ZM Style Studio
Author URI: https://zm-style.ru
Description: Яркая красно-белая тема для веб-студии ЗАМЕТНЫЕ. Разработка сайтов и приложений в Москве.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zm-style
Tags: red, white, minimal, portfolio, business
*/

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
}

.main-title {
    text-align: center;
    position: relative;
}

.badge-wrapper {
    position: relative;
    display: inline-block;
}

.badge {
    display: inline-block;
    background: #e60000;
    color: #fff;
    padding: 30px 70px;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    position: relative;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.badge:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(230, 0, 0, 0.3);
}

.badge-sub {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 12px;
    margin-top: 10px;
    opacity: 0.9;
}

.domain-slide {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(-100%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
}

.domain-slide.show {
    transform: translateX(-50%) translateY(-120%);
    opacity: 1;
}

.tagline {
    margin-top: 40px;
    font-size: 1.3rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 2px;
}

.city {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #e60000;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Lines */
.lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.line {
    position: absolute;
    background: #e60000;
    opacity: 0.1;
}

.line-h {
    height: 1px;
    width: 100%;
    top: 50%;
}

.line-v {
    width: 1px;
    height: 100%;
    left: 50%;
}

.line-d1 {
    height: 1px;
    width: 200%;
    top: 50%;
    left: -50%;
    transform: rotate(45deg);
    transform-origin: center;
}

.line-d2 {
    height: 1px;
    width: 200%;
    top: 50%;
    left: -50%;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #e60000, transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === SECTIONS === */
section,
.section {
    padding: 120px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.section-title span {
    color: #e60000;
}

.section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 80px;
    line-height: 1.8;
}

.section-desc strong {
    color: #e60000;
}

/* === SERVICES === */
.services {
    background: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 50px 40px;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #e60000;
    transition: height 0.4s ease;
}

.service-card:hover {
    border-color: #e60000;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    height: 100%;
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: #f0f0f0;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover .service-number {
    color: #ffe6e6;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1rem;
    font-weight: 600;
    color: #e60000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === EXCLUSIVE === */
.exclusive {
    padding: 140px 20px;
    background: #fafafa;
    text-align: center;
}

.exclusive .section-title span {
    color: #1a1a1a;
    border-bottom: 3px solid #e60000;
}

.exclusive-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 80px;
    font-weight: 300;
}

.exclusive-features {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.exclusive-item {
    text-align: center;
    max-width: 200px;
}

.exclusive-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    stroke: #e60000;
    stroke-width: 1.5;
    fill: none;
}

.exclusive-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.exclusive-item p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

/* === CTA === */
.cta {
    padding: 120px 20px;
    text-align: center;
    background: #fff;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta h2 span {
    color: #e60000;
}

.cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 20px 60px;
    background: #e60000;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #e60000;
}

.cta-button:hover {
    background: #fff;
    color: #e60000;
}

/* === CONTACTS — красно-белый стиль === */
.contacts {
    padding: 100px 20px;
    background: #e60000;
    color: #fff;
    text-align: center;
}

.contacts h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 300;
    color: #fff;
}

.phone-container {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.phone-static {
    display: inline;
    color: #fff;
}

.slots-wrapper {
    display: flex;
    position: relative;
}

.slot {
    width: 50px;
    height: 75px;
    overflow: hidden;
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    border-radius: 8px;
    margin: 0 3px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.slot-inner {
    display: flex;
    flex-direction: column;
}

.slot-inner span {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
}

/* Coins */
.coin {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
    animation: coinFly 2s ease-out forwards;
}

@keyframes coinFly {
    0% { 
        opacity: 1; 
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    30% { 
        transform: translateY(-180px) rotateY(360deg) scale(1.3);
    }
    100% { 
        opacity: 0; 
        transform: translateY(100px) translateX(var(--drift)) rotateY(1080deg) scale(0.4);
    }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
}

/* Jackpot glow */
.phone-wrapper.jackpot .slots-wrapper {
    animation: jackpotPulse 0.4s ease-in-out 4;
}

@keyframes jackpotPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1));
        transform: scale(1.05);
    }
}

.contacts-extra {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.contacts-extra a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: all 0.3s;
}

.contacts-extra a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contacts-extra > span {
    color: rgba(255, 255, 255, 0.8);
}

.contacts-extra svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* === FOOTER === */
.site-footer {
    padding: 50px 20px;
    background: #0d0d0d;
    color: #444;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.footer-logo span {
    color: #e60000;
}

.footer-domain {
    color: #666;
    font-size: 0.95rem;
}

.footer-copy {
    color: #444;
    font-size: 0.85rem;
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === BLOG === */
.archive-header {
    padding: 150px 20px 60px;
    background: #fafafa;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.archive-title span {
    color: #e60000;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    overflow: hidden;
}

.post-card:hover {
    border-color: #e60000;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 30px;
}

.post-card-meta {
    font-size: 0.85rem;
    color: #e60000;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card-title a:hover {
    color: #e60000;
}

.post-card-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* === SINGLE POST === */
.single-header {
    padding: 150px 20px 60px;
    text-align: center;
    background: #fafafa;
}

.single-meta {
    font-size: 0.9rem;
    color: #e60000;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

.single-featured {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.single-featured img {
    width: 100%;
}

.single-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.single-content p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
}

.single-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 60px;
    margin-bottom: 25px;
}

.single-content h3 {
    font-size: 1.4rem;
    margin-top: 40px;
}

.single-content ul,
.single-content ol {
    margin-bottom: 30px;
    padding-left: 30px;
}

.single-content li {
    margin-bottom: 12px;
    line-height: 1.8;
    list-style: disc;
}

.single-content ol li {
    list-style: decimal;
}

.single-content blockquote {
    border-left: 4px solid #e60000;
    padding-left: 30px;
    margin: 50px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

.single-content img {
    margin: 40px 0;
}

.single-content a {
    color: #e60000;
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: #e60000;
    font-weight: 600;
}

/* === PAGE === */
.page-header {
    padding: 150px 20px 60px;
    text-align: center;
    background: #fafafa;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 2;
}

/* === COMMENTS === */
.comments-area {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.comment {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 0;
    line-height: 1.8;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #666;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #e60000;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: #e60000;
    color: #fff;
    border: 2px solid #e60000;
    padding: 15px 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: #fff;
    color: #e60000;
}

/* === 404 === */
.error-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.error-404 h1 {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    color: #e60000;
}

.error-404 p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
}

.error-404 a {
    display: inline-block;
    padding: 15px 40px;
    background: #e60000;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-404 a:hover {
    background: #1a1a1a;
}

/* === SEARCH === */
.search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-right: none;
    font-family: inherit;
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #e60000;
}

.search-form button {
    padding: 15px 30px;
    background: #e60000;
    color: #fff;
    border: 2px solid #e60000;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.search-form button:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #eee;
    font-size: 1rem;
    font-weight: 600;
}

.pagination a:hover {
    border-color: #e60000;
    color: #e60000;
}

.pagination .current {
    background: #e60000;
    color: #fff;
    border-color: #e60000;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .badge {
        font-size: 2rem;
        padding: 25px 40px;
        letter-spacing: 4px;
    }

    .badge-sub {
        font-size: 0.9rem;
        letter-spacing: 6px;
    }

    .domain-slide {
        font-size: 0.7rem;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .phone-wrapper {
        font-size: 1.4rem;
        letter-spacing: 1px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .phone-static {
        font-size: 1.4rem;
    }

    .slots-wrapper {
        margin-top: 5px;
    }

    .slot {
        width: 28px;
        height: 42px;
        margin: 0 2px;
        border-radius: 4px;
    }

    .slot-inner span {
        height: 42px;
        font-size: 1.4rem;
    }

    .phone-container {
        height: 100px;
    }

    .contacts h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .contacts-extra {
        gap: 20px;
        font-size: 0.95rem;
    }

    .coin {
        font-size: 1.2rem;
    }

    @keyframes coinFly {
        0% { 
            opacity: 1; 
            transform: translateY(0) rotateY(0deg) scale(1);
        }
        30% { 
            transform: translateY(-100px) rotateY(360deg) scale(1.2);
        }
        100% { 
            opacity: 0; 
            transform: translateY(60px) translateX(var(--drift)) rotateY(720deg) scale(0.3);
        }
    }

    .exclusive-features {
        gap: 50px;
    }

    .exclusive-item .icon {
        width: 50px;
        height: 50px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .archive-title,
    .single-title,
    .page-title {
        font-size: 2rem;
    }

    /* Services mobile */
    .services {
        padding: 80px 15px;
    }

    .services-grid {
        gap: 25px;
    }

    .service-card {
        padding: 35px 25px;
    }

    .service-number {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Exclusive mobile */
    .exclusive {
        padding: 80px 15px;
    }

    .exclusive-subtitle {
        font-size: 1rem;
        margin-bottom: 50px;
    }

    .exclusive-item {
        max-width: 160px;
    }

    .exclusive-item h4 {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .exclusive-item p {
        font-size: 0.85rem;
    }

    /* CTA mobile */
    .cta {
        padding: 80px 15px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    /* Hero mobile */
    .hero {
        padding: 20px;
    }

    .tagline {
        font-size: 1rem;
        margin-top: 30px;
        padding: 0 10px;
    }

    .city {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }

    .scroll-indicator {
        bottom: 25px;
        font-size: 0.7rem;
    }

    .scroll-indicator::after {
        height: 30px;
    }

    /* Blog mobile */
    .post-card-content {
        padding: 20px;
    }

    .post-card-title {
        font-size: 1.2rem;
    }

    /* Single/Page mobile */
    .single-header,
    .page-header {
        padding: 120px 15px 40px;
    }

    .single-content,
    .page-content {
        padding: 40px 15px 60px;
    }

    .single-content p,
    .page-content p {
        font-size: 1rem;
    }

    /* Comments mobile */
    .comments-area {
        padding: 40px 15px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .comment-form .submit {
        padding: 12px 35px;
        font-size: 0.9rem;
    }
}
