* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-light: #999999;
    --text-dark: #000000;
    --bg-light: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--secondary-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.disclaimer {
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    color: #856404;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    position: relative;
    z-index: 100;
}

.header-favicon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-favicon img {
    display: block;
}

.logo {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-decoration: none;
}

.header-contact-btn {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
    min-height: 36px;
    line-height: 20px;
    box-sizing: border-box;
}

.header-contact-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.time-display {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

.menu-container {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1001;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle:hover span {
    background: var(--text-light);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px 0;
    max-height: 80vh;
    overflow-y: auto;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu ul li {
    margin: 0;
}

.dropdown-menu ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 12px 24px;
}

.dropdown-menu ul li a:hover {
    color: var(--text-dark);
    background: var(--bg-light);
    padding-left: 28px;
}

.menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
    padding: 0 !important;
}

.menu-divider:hover {
    background: #e0e0e0 !important;
    padding-left: 24px !important;
}

.main-container {
    display: block;
    position: relative;
    overflow: visible;
    width: 100%;
}

.content-section {
    padding: 40px 60px;
    position: relative;
    z-index: 2;
    background: var(--secondary-color);
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto;
}

.studio-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-title {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 60px;
    letter-spacing: -2px;
}

.feature-project {
    display: none;
}

.feature-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.project-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
}

.project-grid > div {
    width: 100%;
}


.project-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

.project-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background: var(--bg-light);
    transition: opacity 0.4s ease-in-out;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--primary-color);
}

.visual-section {
    position: sticky;
    top: 0;
    right: 0;
    width: 33.333%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    align-self: start;
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.content-layout {
    display: block;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.content-layout > div:first-child {
    position: relative;
    width: 100%;
}

.articles-list {
    margin-top: 0;
    width: 100%;
}

.article-card {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    background: var(--bg-light);
    max-width: 100%;
    display: block;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--text-light);
}

.article-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.article-header {
    margin-bottom: 50px;
}

.article-content h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
}

footer {
    background: var(--bg-light);
    padding: 60px 40px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Если есть footer-info-section, делаем его шире */
.footer-content:has(.footer-info-section) {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.footer-info-section {
    max-width: 100%;
}

.footer-info-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-warning {
    color: #d32f2f !important;
    font-weight: 500;
    padding-left: 20px;
    margin: 25px 0 !important;
}

.footer-warning strong {
    color: #b71c1c;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-light);
}

.footer-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-light);
}

.page-title {
    font-size: 72px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.page-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.page-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-left: 30px;
    margin-bottom: 25px;
}

.page-content li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #333;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 20px 40px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    background: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: #333;
}

@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 230px;
    }
    
    .main-container {
        display: block;
        width: 100%;
    }
    
    .visual-section {
        display: none;
    }
    
    .content-section {
        width: 100%;
        padding: 40px 30px;
    }
    
    .main-title {
        font-size: 72px;
    }
    
    .content-layout {
        display: block;
        width: 100%;
    }
    
    .feature-project {
        display: none;
    }
    
    .article-content h1 {
        font-size: 42px;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .header-favicon {
        display: none;
    }
}

@media (max-width: 768px) {
    .disclaimer {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    
    .header-favicon {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
        z-index: 1;
    }
    
    .header-favicon img {
        width: 24px;
        height: 24px;
    }
    
    .logo {
        font-size: 16px;
        letter-spacing: 1px;
        flex: 1;
        z-index: 2;
        min-width: 0;
    }
    
    header > div:last-child {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        justify-content: flex-end;
        z-index: 2;
        min-width: 0;
    }
    
    .header-contact-btn {
        font-size: 11px;
        padding: 6px 12px;
        white-space: nowrap;
        min-height: 32px;
    }
    
    .time-display {
        display: none;
    }
    
    .menu-toggle {
        order: 2;
        flex-shrink: 0;
    }
    
    .menu-container {
        order: 2;
        flex-shrink: 0;
    }
    
    .dropdown-menu {
        width: calc(100vw - 40px);
        max-width: 300px;
        right: 0;
        left: auto;
    }
    
    nav ul li {
        margin-bottom: 15px;
    }
    
    nav ul li a {
        font-size: 18px;
    }
    
    .content-section {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible !important;
        overflow: visible !important;
    }
    
    .main-title {
        font-size: 48px;
        margin-bottom: 40px;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .studio-label {
        font-size: 11px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .article-card-image {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .feature-project {
        margin-top: 0;
        position: relative;
        top: auto;
    }
    
    .project-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    
    .project-title {
        font-size: 24px;
    }
    
    .project-featured-image {
        height: 150px;
        margin-bottom: 15px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-excerpt {
        font-size: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content:has(.footer-info-section) {
        grid-template-columns: 1fr;
    }
    
    .footer-info-section p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .footer-warning {
        padding-left: 15px;
        margin: 20px 0 !important;
    }
    
    footer {
        padding: 40px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .cookie-text {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 30px;
    }
    
    .cookie-consent {
        padding: 0;
    }
    
    .article-content {
        padding: 40px 20px;
    }
    
    .article-content h1 {
        font-size: 32px;
    }
    
    .article-content h2 {
        font-size: 26px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-content p {
        font-size: 16px;
    }
    
    .page-content {
        padding: 40px 20px;
    }
    
    .page-title {
        font-size: 42px;
    }
    
    .page-content h2 {
        font-size: 26px;
    }
    
    .page-content h3 {
        font-size: 20px;
    }
    
    .page-content p,
    .page-content li {
        font-size: 16px;
    }
    
    .feature-label {
        font-size: 11px;
    }
    
    .article-meta {
        font-size: 11px;
    }
    
    .read-more {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .disclaimer {
        font-size: 10px;
        padding: 8px 12px;
    }
    
    header {
        padding: 12px 15px;
    }
    
    .header-favicon {
        top: 12px;
    }
    
    .header-favicon img {
        width: 20px;
        height: 20px;
    }
    
    .article-card-image {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .header-contact-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .studio-label {
        font-size: 10px;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .project-featured-image {
        height: 120px;
        margin-bottom: 12px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-excerpt {
        font-size: 14px;
    }
    
    .article-content h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
    
    .page-content h3 {
        font-size: 18px;
    }
    
    footer {
        padding: 30px 15px;
    }
    
    .footer-section h3 {
        font-size: 12px;
    }
    
    .footer-section ul li a,
    .footer-section p {
        font-size: 13px;
    }
    
    .footer-info-section p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .footer-warning {
        font-size: 12px;
        padding-left: 12px;
    }
    
    .copyright {
        font-size: 11px;
        padding-top: 30px;
        margin-top: 30px;
    }
    
    .dropdown-menu {
        width: calc(100vw - 30px);
        max-width: 280px;
    }
    
    .related-articles {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .related-articles h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    .related-article-card {
        padding: 15px;
    }
    
    .related-article-card h3 {
        font-size: 1em;
    }
    
    .related-article-card p {
        font-size: 0.85em;
    }
}

.studio-header-section {
    width: 100%;
    max-width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    background: var(--secondary-color);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    overflow-x: hidden;
}

.studio-header-section > div:first-child {
    text-align: left;
}

.studio-header-section > div:nth-child(2) {
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.studio-header-section > div:last-child {
    text-align: right;
}

.studio-header-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.studio-header-section a:hover {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .studio-header-section {
        padding: 20px 20px;
        flex-direction: column;
        text-align: center;
        font-size: 11px;
        gap: 12px;
    }
    
    .studio-header-section > div:first-child,
    .studio-header-section > div:nth-child(2),
    .studio-header-section > div:last-child {
        text-align: center;
        width: 100%;
    }
    
    .studio-header-section > div:nth-child(2) {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .studio-header-section {
        padding: 15px 15px;
        font-size: 10px;
        gap: 10px;
    }
    
    .studio-header-section > div:nth-child(2) {
        font-size: 11px;
    }
}

/* Related Articles Section */
.related-articles {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.related-articles h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.related-article-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.related-article-card h3:hover {
    color: #667eea;
}

.related-article-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .related-articles {
        padding: 0 20px;
        margin: 40px auto;
    }
    
    .related-articles h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .related-article-card {
        padding: 20px;
    }
    
    .related-article-card h3 {
        font-size: 1.1em;
    }
    
    .related-article-card p {
        font-size: 0.9em;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .related-article-card {
        padding: 20px;
    }
    
    .related-article-card h3 {
        font-size: 1.1em;
    }
}


