/* Russian-specific styles */

/* Improved footer responsiveness */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 10px;
}

.footer-section.branding h3 {
    margin-bottom: 15px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links li {
    margin-bottom: 10px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    min-height: 40px;
    border-radius: 4px 0 0 4px;
    border: none;
    padding: 0 15px;
}

.newsletter-form button {
    min-height: 40px;
    border-radius: 0 4px 4px 0;
    border: none;
    background: var(--accent-color);
    color: white;
    padding: 0 15px;
    cursor: pointer;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Adjust font sizes for Russian text if needed */
.hero-content .animated-title {
    font-size: 3.2rem; /* Slightly smaller to accommodate longer words */
    text-align: center; /* Center the title for better appearance */
}

.hero-content .intro {
    text-align: center; /* Center the intro text */
    max-width: 90%; /* Limit width for better readability */
    margin: 0 auto; /* Center the block */
}

/* Adjust button widths for longer Russian text */
.cta-button, 
.check-website-btn {
    min-width: 240px; /* Ensure buttons have enough space for Russian text */
    text-align: center; /* Center text in buttons */
    padding: 12px 20px; /* Add more padding for Russian text */
}

/* Navigation adjustments for Russian */
.nav-links a {
    padding: 0 15px; /* Add a bit more padding for longer Russian menu items */
    white-space: nowrap; /* Prevent text wrapping in navigation */
}

/* Logo adjustment for Russian */
.logo a {
    font-size: 1.4rem; /* Adjust size for Russian text */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Mobile navigation for Russian */
@media (max-width: 768px) {
    .nav-links {
        padding: 20px 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }
    
    .hamburger {
        margin-right: 10px;
        display: block;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        height: 24px;
        position: relative;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--text-light);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        top: 10px;
    }

    .hamburger span:nth-child(4) {
        top: 20px;
    }

    .hamburger.active span:nth-child(1) {
        top: 10px;
        width: 0%;
        left: 50%;
    }

    .hamburger.active span:nth-child(2) {
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(4) {
        top: 10px;
        width: 0%;
        left: 50%;
    }

    body.no-scroll {
        overflow: hidden;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 0.7;
    }
    
    .language-dropdown {
        position: static;
        margin-top: 20px;
    }
    
    .language-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        padding: 10px 0;
    }

    .language-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .language-dropdown:hover .language-menu,
    .language-selector:focus + .language-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .language-selector {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        cursor: pointer;
    }

    .current-language {
        margin-right: 5px;
        font-weight: bold;
    }

    .dropdown-icon {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .language-menu.active + .language-selector .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* Tool tabs adjustments for Russian */
.tool-tabs {
    display: flex;
    gap: 15px; /* Increase gap for Russian text */
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center; /* Center the tabs */
}

.tool-tab {
    min-width: 200px; /* Ensure tabs have enough space for Russian text */
    padding: 12px 15px; /* Add a bit more padding */
    flex: 1;
    white-space: nowrap;
    text-align: center;
    font-size: 0.95rem; /* Slightly smaller font for Russian */
    background-color: var(--bg-light);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-tab svg {
    margin-right: 8px;
}

.tool-tab:hover {
    background-color: var(--primary-light);
    color: white;
}

.tool-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* Adjust spacing for tool sections */
.tool-section .section-header h2 {
    font-size: 1.8rem; /* Slightly smaller for longer Russian headings */
    line-height: 1.3;
    text-align: center; /* Center the headings */
    margin-bottom: 15px; /* Add more space below headings */
}

.section-description {
    text-align: center; /* Center the description */
    max-width: 90%; /* Limit width for better readability */
    margin: 0 auto 25px; /* Center the block and add bottom margin */
}

/* Adjust spacing for form elements */
.input-header label {
    font-size: 0.95rem; /* Adjust for longer Russian labels */
    white-space: nowrap; /* Prevent text wrapping */
}

.input-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Add more space below headers */
}

.input-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.color-hex {
    min-width: 100px; /* Ensure enough width for hex values */
}

/* Color pickers layout */
.color-pickers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wider columns for Russian text */
    gap: 25px; /* Increase gap between pickers */
    margin-bottom: 30px; /* Add more space below pickers */
}

.color-input {
    width: 100%;
    margin-bottom: 20px; /* Add more space below inputs */
}

/* Newsletter form adjustments */
.newsletter-form input[type="email"] {
    min-width: 240px; /* Ensure enough space for Russian placeholder text */
}

/* URL checker adjustments */
.url-input-wrapper {
    margin-bottom: 20px; /* Add more space below the input */
}

.website-url-input {
    min-width: 240px; /* Ensure enough width for Russian placeholder */
}

.url-hint {
    text-align: center; /* Center the hint text */
    margin-top: 10px; /* Add space above the hint */
}

/* Website analysis results */
.website-results {
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px; /* Add more space at the top */
}

.results-header {
    text-align: center; /* Center the header */
    margin-bottom: 20px; /* Add more space below header */
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wider columns for Russian text */
    gap: 25px; /* Increase gap between items */
}

.result-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center; /* Center the card content */
}

.result-header h4 {
    margin-bottom: 15px; /* Add more space below headings */
}

.score-display {
    margin: 20px auto; /* Center and add vertical space */
}

.issues-summary {
    display: flex;
    justify-content: center; /* Center the issues summary */
    gap: 20px; /* Add more space between items */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.issue-count {
    text-align: center; /* Center the count */
    margin: 10px; /* Add margin around counts */
}

/* Results display */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increase gap for better spacing */
    margin-top: 30px; /* Add more space at the top */
}

.contrast-result {
    width: 100%;
    text-align: center; /* Center the result content */
}

.result-preview {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px; /* Add more space below preview */
    text-align: center; /* Center the preview text */
}

.ratio-display {
    margin: 20px auto; /* Center and add vertical space */
    text-align: center; /* Center the ratio display */
}

.ratio-value {
    font-size: 2.5rem; /* Larger font for ratio value */
    font-weight: bold;
    margin-bottom: 5px;
}

.wcag-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Wider columns for Russian text */
    gap: 25px; /* Increase gap between items */
}

.wcag-category {
    text-align: center; /* Center category content */
}

.wcag-category h3 {
    margin-bottom: 15px; /* Add more space below category headings */
}

.wcag-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the items */
    margin-bottom: 15px; /* Add more space between items */
}

.wcag-badge {
    margin-right: 15px; /* Add more space between badge and description */
}

/* Font preview and text input section */
.font-preview {
    margin-top: 40px; /* Add more space at the top */
}

.section-subheader {
    text-align: center; /* Center the subheader */
    margin-bottom: 20px; /* Add more space below subheader */
}

.section-subheader h3 {
    margin-bottom: 10px; /* Space between heading and description */
}

.font-selector {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the selector */
    margin-bottom: 25px; /* Add more space below selector */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.font-selector label {
    margin-right: 15px; /* Add more space between label and select */
    white-space: nowrap; /* Prevent text wrapping */
}

.preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wider columns for Russian text */
    gap: 25px; /* Increase gap between items */
    margin-top: 25px; /* Add more space at the top */
}

.preview-box {
    padding: 25px; /* Add more padding */
    border-radius: 8px;
    margin-bottom: 20px; /* Add more space below boxes */
    text-align: center; /* Center the preview text */
}

.text-input-section {
    margin-top: 40px; /* Add more space at the top */
}

#custom-text {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Add more space below text area */
    font-size: 1rem; /* Ensure readable font size */
}

/* FAQ section adjustments for Russian */
.faq-section {
    margin-top: 50px; /* Add more space at the top */
}

.faq-container {
    max-width: 95%; /* Limit width for better readability */
    margin: 0 auto; /* Center the container */
}

.faq-item {
    margin-bottom: 30px; /* Add more space between items */
    padding: 20px; /* Add padding around items */
    border-radius: 8px; /* Add rounded corners */
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for better visibility */
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px; /* Add more space below headings */
    color: var(--primary-light); /* Highlight the question */
}

.faq-item p, .faq-item ul {
    font-size: 0.95rem;
    line-height: 1.7; /* Increase line height for better readability */
    text-align: justify; /* Justify text for better appearance with Russian */
}

.faq-item ul {
    padding-left: 20px; /* Add padding for list items */
    margin-top: 10px; /* Add space above lists */
}

.faq-item li {
    margin-bottom: 8px; /* Add space between list items */
}

/* Tool content and URL checker container */
.tool-content {
    width: 100%;
    display: block;
}

.tool-pane {
    width: 100%;
    display: none;
}

.tool-pane.active {
    display: block;
}

.url-checker-container {
    width: 100%;
}

.url-input-group {
    display: flex;
    flex-wrap: wrap;
}

/* Fix for the manual check pane */
#manual-check-pane {
    width: 100%;
}

/* Fix for the results section */
.results {
    width: 100%;
    margin-top: 40px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.results-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.ratio-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.ratio-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    margin-right: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#ratio {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.ratio-scale {
    display: flex;
    flex-direction: column;
    height: 120px;
    position: relative;
    width: 200px;
}

.scale-marker {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
}

.marker-line {
    width: 100px;
    height: 2px;
    background-color: var(--text-light);
    margin-right: 10px;
}

.marker-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.fail-marker {
    bottom: 0;
}

.aa-marker {
    bottom: 50%;
}

.aaa-marker {
    top: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-content .animated-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        padding: 40px 0 80px;
    }
    
    .tool-section .section-header h2 {
        font-size: 1.6rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Header and hero section */
    .hero-content .animated-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-content {
        padding: 20px 10px;
    }
    
    .hero-container .container {
        flex-direction: column;
    }
    
    .hero-visual {
        margin-top: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .cta-link {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Tool tabs */
    .tool-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tool-tab {
        width: 100%;
        min-width: 100%;
        padding: 12px 10px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    /* URL checker */
    .url-input-group {
        flex-direction: column;
    }
    
    .input-icon {
        display: none;
    }
    
    .website-url-input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .check-website-btn {
        width: 100%;
        border-radius: 4px;
    }
    
    /* Color pickers */
    .color-pickers {
        grid-template-columns: 1fr;
    }
    
    .color-input {
        margin-bottom: 20px;
    }
    
    .color-swap {
        margin: 0 auto;
        transform: rotate(90deg);
        margin-bottom: 20px;
    }
    
    /* Results display */
    .results-container {
        padding: 15px;
    }
    
    .ratio-display {
        flex-direction: column;
        align-items: center;
    }
    
    .ratio-circle {
        margin-bottom: 20px;
    }
    
    .wcag-results {
        grid-template-columns: 1fr;
    }
    
    /* Font preview */
    .preview {
        grid-template-columns: 1fr;
    }
    
    .font-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .font-selector label {
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        margin-top: 15px;
        justify-content: center;
    }
    
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        margin-bottom: 15px; /* Add more space below headings */
        font-size: 1.3rem; /* Slightly larger font for headings */
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Add more space between links */
    }
    
    .footer-links li {
        margin-bottom: 12px; /* Add more space between list items */
        margin-left: 0; /* Reset any left margin */
    }
    
    .footer-links a {
        font-size: 0.95rem; /* Slightly smaller font for Russian text */
        display: inline-block;
        text-align: center;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }
    
    .newsletter-form {
        display: flex;
        max-width: 100%;
        margin: 15px auto; /* Center the form */
    }
    
    .newsletter-form input {
        flex: 1;
        min-height: 40px;
        border-radius: 4px 0 0 4px;
        border: none;
        padding: 0 15px;
    }
    
    .newsletter-form button {
        min-height: 40px;
        border-radius: 0 4px 4px 0;
        border: none;
        background: var(--accent-color);
        color: white;
        padding: 0 15px;
        cursor: pointer;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 30px; /* Add more space at the top */
        padding-top: 20px; /* Add padding at the top */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Add a subtle separator */
    }
    
    .footer-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Add more space between badges */
        margin-top: 15px; /* Add space at the top */
    }
    
    .footer-badge {
        background: rgba(255, 255, 255, 0.1);
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Footer responsive styles for medium screens */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section.branding {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-section.branding h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content .animated-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .tool-section .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .input-header label {
        font-size: 0.85rem;
    }
    
    .ratio-display #ratio {
        font-size: 2rem;
    }
    
    .wcag-category h3 {
        font-size: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    /* Font preview section */
    .font-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .font-selector label {
        margin-bottom: 10px;
    }
    
    .font-selector select {
        width: 100%;
    }
    
    .preview {
        grid-template-columns: 1fr;
    }
    
    /* FAQ section */
    .faq-item h3 {
        font-size: 1.1rem;
    }
}