@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root {
    --gotag-bg:         #151721;
    --gotag-section-bg: #20203a;
    --gotag-purple:     #4831B0;
    --gotag-white:      #ffffff;
    --gotag-text:       #f4efef;
    --gotag-red:        #e82e2e;
    --gotag-hover-bg:   #EFEDF4;
}

/* убираем первый спейсер сразу после заголовка страницы */
.gotag-page-title + .wp-block-spacer {
    display: none;
}

/* ── CONTACT FORM (CoBlocks) ── */
div.coblocks-form {
    display: flex;
    justify-content: center;
}

div.coblocks-form form {
    width: 90%;
}

div.coblocks-form form input,
div.coblocks-form form textarea {
    color: var(--gotag-text);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    border-radius: 0;
    box-sizing: border-box;
}

div.coblocks-form form input:focus,
div.coblocks-form form textarea:focus {
    outline: none;
    border-color: var(--gotag-purple);
}

div.coblocks-form form input[type="submit"],
div.coblocks-form .wp-block-button__link {
    background-color: var(--gotag-purple) !important;
    color: var(--gotag-white) !important;
    border: none !important;
    cursor: pointer;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 13px;
}

div.coblocks-form form input[type="submit"]:hover,
div.coblocks-form .wp-block-button__link:hover {
    background-color: var(--gotag-red) !important;
}

/* ── GUTENBERG / COBLOCKS BLOCKS ── */
.wp-block-coblocks-posts {
    gap: 30px !important;
}

.wp-block-coblocks-posts .wp-block-coblocks-posts__item {
    margin-bottom: 30px;
}

/* ── PAGE / INNER CONTENT ── */
.gotag-content-section {
    background-color: var(--gotag-section-bg);
    min-height: 88vh;
    color: var(--gotag-text);
}

.gotag-inner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--gotag-text);
}

/* ── PAGE TITLE ── */
.gotag-page-title {
    font-size: 42px;
    font-weight: 600;
    color: var(--gotag-white);
    margin: 0 0 60px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .gotag-page-title { font-size: 20px; margin-bottom: 30px; }
    .gotag-inner-content { padding-top: 30px; }
}

/* ── POST HERO ── */
.gotag-post-hero {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #6d0808;
}

.gotag-post-hero-overlay {
    background-color: rgba(17, 8, 8, 0.71);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 20px 47px;
    text-align: center;
}

.gotag-post-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.gotag-single-date {
    font-size: 20px;
    font-weight: 400;
    color: var(--gotag-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 10px;
    line-height: 1.1;
}

.gotag-single-title {
    font-size: 38px;
    color: var(--gotag-text);
    margin: 0 20px;
    line-height: 1.3;
}

/* ── SINGLE CONTENT ── */
.gotag-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gotag-text);
}

.gotag-single-content p   { margin: 0 0 1.4em; }
.gotag-single-content img { max-width: 100%; height: auto; }
.gotag-single-content a   { color: var(--gotag-red); }
.gotag-single-content a:hover { color: var(--gotag-white); }
.gotag-single-content h1,
.gotag-single-content h2,
.gotag-single-content h3,
.gotag-single-content h4,
.gotag-single-content h5,
.gotag-single-content h6 {
    line-height: 1.1em;
    font-weight: 400;
    margin-top: 18px;
    margin-bottom: 12px;
    color: var(--gotag-white);
}
.gotag-single-content blockquote {
    color: var(--gotag-white);
    font-style: italic;
    border-left: 2px solid var(--gotag-purple);
    padding-left: 24px;
    line-height: 1.6;
    margin-left: 32px;
}
.gotag-single-content ul li,
.gotag-single-content ol li {
    line-height: 1.6;
    margin-bottom: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gotag-white);
    background-color: var(--gotag-bg);
}

h1 { font-size: 42px; font-family: 'Montserrat', sans-serif; }
h2 { font-size: 32px; font-family: 'Montserrat', sans-serif; }
h3 { font-size: 26px; font-family: 'Montserrat', sans-serif; }
h4 { font-size: 22px; font-family: 'Montserrat', sans-serif; }
h5, h6 { font-size: 18px; font-family: 'Montserrat', sans-serif; }

a { color: var(--gotag-red); text-decoration: none; }
a:hover { text-decoration: none; }

/* ── HEADER ── */
.gotag-header {
    width: 100%;
    background-color: var(--gotag-bg);
    position: relative;
    z-index: 100;
}

.gotag-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gotag-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.gotag-logo-img {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.gotag-logo-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gotag-white);
    line-height: 1.3;
    white-space: nowrap;
}

/* ── NAV ── */
.gotag-nav {
    display: flex;
    align-items: center;
}

.gotag-nav-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.gotag-nav-container ul li {
    position: relative;
}

.gotag-nav-container ul li a {
    display: block;
    padding: 20px 16px;
    color: var(--gotag-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gotag-nav-container ul li a:hover {
    color: var(--gotag-red);
}

/* Dropdown arrow */
.gotag-nav-container ul li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 11px;
    opacity: 0.7;
}

/* Dropdown */
.gotag-nav-container ul .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--gotag-purple);
    min-width: 220px;
    z-index: 200;
}

.gotag-nav-container ul li:hover > .sub-menu {
    display: flex;
}

.gotag-nav-container ul .sub-menu li a {
    color: var(--gotag-white);
    padding: 10px 16px;
    font-size: 13px;
    white-space: normal;
}

.gotag-nav-container ul .sub-menu li a:hover {
    background-color: var(--gotag-hover-bg);
    color: var(--gotag-purple);
}

/* ── HAMBURGER ── */
.gotag-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    z-index: 200;
}

.gotag-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gotag-hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--gotag-white);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.gotag-menu-toggle.open .gotag-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.gotag-menu-toggle.open .gotag-hamburger-line:nth-child(2) {
    opacity: 0;
}
.gotag-menu-toggle.open .gotag-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── FOOTER ── */
.gotag-footer {
    background-color: #151721;
    color: var(--gotag-white);
    padding: 30px 20px;
}

.gotag-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.gotag-footer-copy {
    font-size: 14px;
    color: var(--gotag-white);
}

.gotag-footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gotag-social-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--gotag-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.gotag-social-icon:hover svg {
    stroke: var(--gotag-red);
}

/* ── SINGLE POST ── */
.gotag-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gotag-single-hero {
    margin-bottom: 32px;
}

.gotag-single-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gotag-single-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--gotag-white);
    margin: 0;
    line-height: 1.3;
}

/* ── SINGLE CONTENT ── */
.gotag-single-content {
    line-height: 1.8;
    font-size: 16px;
    color: var(--gotag-white);
}

.gotag-single-content p { margin: 0 0 1.4em; }
.gotag-single-content img { max-width: 100%; height: auto; }
.gotag-single-content a { color: var(--gotag-red); }
.gotag-single-content a:hover { color: var(--gotag-white); }
.gotag-single-content ul, .gotag-single-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.gotag-single-content blockquote { border-left: 3px solid var(--gotag-purple); margin: 0; padding-left: 20px; color: rgba(255,255,255,0.7); }

/* ── BLOG LIST ── */
.gotag-blog-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gotag-blog-item {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.gotag-blog-image {
    flex: 0 0 300px;
    display: block;
}

.gotag-blog-image-inner {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gotag-blog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gotag-blog-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gotag-blog-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gotag-white);
    line-height: 1.4;
}

.gotag-blog-title:hover { color: var(--gotag-red); }

.gotag-blog-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.gotag-blog-excerpt p { margin: 0; }

.gotag-blog-btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 20px;
    background-color: var(--gotag-purple);
    color: var(--gotag-white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.gotag-blog-btn:hover {
    background-color: var(--gotag-red);
    color: var(--gotag-white);
}

@media (max-width: 600px) {
    .gotag-blog-item { flex-direction: column; }
    .gotag-blog-image { flex: none; width: 100%; }
}

/* ── POSTS GRID ── */
.gotag-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gotag-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.gotag-post {
    display: flex;
    flex-direction: column;
    background-color: var(--gotag-bg);
}

.gotag-post-image {
    display: block;
    position: relative;
    text-decoration: none;
}

.gotag-post-image-ratio {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gotag-post-image-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--gotag-white);
    font-size: 12px;
    padding: 4px 10px;
}

.gotag-post-wrap {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    gap: 10px;
}

.gotag-post-title {
    color: var(--gotag-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.gotag-post-title:hover {
    color: var(--gotag-red);
}

.gotag-post-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.gotag-post-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.gotag-post-content p { margin: 0; }

.gotag-read-more {
    display: inline-block;
    color: var(--gotag-red);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gotag-read-more:hover {
    color: var(--gotag-white);
}

.gotag-pagination {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
}

.gotag-pagination .page-numbers {
    color: var(--gotag-white);
    padding: 6px 12px;
}

.gotag-pagination .page-numbers.current {
    color: var(--gotag-red);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .gotag-logo-img {
        width: 200px;
    }

    .gotag-menu-toggle {
        display: flex;
    }

    .gotag-header {
        position: relative;
    }

    .gotag-header-container {
        padding: 10px 16px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .gotag-header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .gotag-nav {
        position: static;
    }

    .gotag-nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--gotag-bg);
        z-index: 999;
    }

    .gotag-nav-container.open {
        display: block;
    }

    .gotag-nav-container ul {
        flex-direction: column;
    }

    .gotag-nav-container ul li a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .gotag-nav-container ul .sub-menu {
        position: static;
        display: none;
        flex-direction: column;
        background-color: var(--gotag-purple);
        width: 100%;
        min-width: unset;
    }

    .gotag-nav-container ul li:hover > .sub-menu {
        display: none;
    }

    .gotag-nav-container ul li.open > .sub-menu {
        display: flex;
    }

    .gotag-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}
