/*
 MODERN ASYMMETRIC THEME - "thejr.com"
 LANGUAGE: RUSSIAN
*/

/* -------------------
 *
 * 0. CSS Variables & Base
 *
 * ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
 --primary-color: #0b2647; /* Deep Navy Blue */
 --secondary-color: #3b82f6; /* Bright Blue Accent */
 --accent-color: #eab308; /* Yellow Gold Accent */
 --bg-light: #f7f9fc;
 --bg-white: #ffffff;
 --text-dark: #1f2937;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --border-color: #e5e7eb;
 
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;

 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
 scroll-behavior: smooth;
 scroll-padding-top: 80px;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-light);
 background: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
 font-weight: 800;
 line-height: 1.2;
 color: var(--text-dark);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.1rem; }

a { color: var(--secondary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-color); }

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; overflow: hidden; }
.section-light { background: var(--bg-light); }
.section-header { text-align: center; margin: 0 auto 60px; max-width: 700px; }
.section-header h2 { margin-bottom: 16px; }

/* -------------------
 *
 * 1. Header & Navigation (Asymmetric)
 *
 * ------------------- */
.header {
 position: fixed;
 top: 0; left: 0; right: 0;
 z-index: 1000;
 padding: 16px 0;
 transition: var(--transition);
}
.header.scrolled { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }

.nav-container {
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-size: 1.5rem;
 font-weight: 800;
 color: var(--text-dark);
}

.nav-links {
 display: flex;
 align-items: center;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 font-weight: 500;
 color: var(--text-light);
 padding: 8px 0;
 position: relative;
}

.nav-links a.active, .nav-links a:hover { color: var(--primary-color); }
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px; left: 0;
 width: 0;
 height: 2px;
 background: var(--secondary-color);
 transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta a {
 background-color: var(--secondary-color);
 color: white;
 padding: 10px 20px;
 border-radius: var(--radius-md);
 transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta a:hover {
 color: white;
 transform: translateY(-2px);
 box-shadow: var(--shadow-lg);
}

.nav-toggle { display: none; } /* Mobile Menu Toggle */

@media (max-width: 900px) {
 .nav-links, .nav-cta { display: none; }
 .nav-toggle {
 display: block;
 background: none; border: none; cursor: pointer;
 width: 28px; height: 22px;
 position: relative; z-index: 1001;
 }
 .nav-toggle span {
 display: block; width: 100%; height: 2px;
 background: var(--text-dark);
 border-radius: 2px;
 transition: all 0.3s ease-in-out;
 position: absolute;
 }
 .nav-toggle span:nth-child(1) { top: 0; }
 .nav-toggle span:nth-child(2) { top: 10px; }
 .nav-toggle span:nth-child(3) { bottom: 0; }
 
 .nav-menu-mobile {
 position: fixed;
 top: 0; right: -100%;
 width: 300px;
 height: 100vh;
 background: var(--bg-white);
 box-shadow: var(--shadow-xl);
 padding: 100px 40px;
 transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
 transform: skewX(-10deg) translateX(50px);
 transform-origin: top right;
 display: flex;
 flex-direction: column;
 gap: 20px;
 list-style: none;
 }
 .nav-menu-mobile.active { right: 0; transform: skewX(0) translateX(0); }
 .nav-menu-mobile a { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
 .nav-menu-mobile .nav-cta a { margin-top: 20px; text-align: center; }

 .mobile-nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); top: 10px; }
 .mobile-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
 .mobile-nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); top: 10px; }
}

/* -------------------
 *
 * 2. Buttons & Forms
 *
 * ------------------- */
.btn {
 display: inline-block;
 padding: 14px 28px;
 font-size: 1rem;
 font-weight: 700;
 border-radius: var(--radius-md);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
}
.btn-primary { background: var(--secondary-color); color: white; border-color: var(--secondary-color); }
.btn-primary:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--text-dark); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--bg-white); border-color: var(--text-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.form-control {
 width: 100%;
 padding: 14px 18px;
 font-size: 1rem;
 font-family: var(--font-main);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background: white;
}
.form-control:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-checkbox { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }

/* -------------------
 *
 * 3. Hero Section (Asymmetric)
 *
 * ------------------- */
.hero {
 padding-top: 150px;
 padding-bottom: 100px;
 overflow: visible;
}

.hero-grid {
 display: grid;
 grid-template-columns: 3fr 2fr;
 align-items: center;
 gap: 50px;
 position: relative;
}

.hero-content { z-index: 2; position: relative; }
.hero-content h1 { margin-bottom: 24px; font-weight: 800; }
.hero-content p { font-size: 1.1rem; max-width: 550px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }

.hero-sidenote {
 background: var(--bg-light);
 border-radius: var(--radius-lg);
 padding: 24px;
 border-left: 4px solid var(--secondary-color);
 box-shadow: var(--shadow-md);
}
.hero-sidenote h4 { color: var(--primary-color); margin-bottom: 12px; }
.hero-sidenote ul { list-style: none; padding-left: 0; }
.hero-sidenote li {
 padding-left: 24px;
 position: relative;
 margin-bottom: 8px;
}
.hero-sidenote li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--secondary-color);
 font-weight: bold;
}

.hero-visual {
 position: relative;
 z-index: 1;
}

.hero-visual .hero-image-wrapper {
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-xl);
 transform: translateX(10%);
}
.hero-visual .hero-image-wrapper img {
 width: 100%;
 height: 100%;
 aspect-ratio: 4/5;
 object-fit: cover;
}

@media (max-width: 900px) {
 .hero-grid { grid-template-columns: 1fr; gap: 40px; }
 .hero-visual { order: -1; }
 .hero-visual .hero-image-wrapper { transform: translateX(0); }
 .hero-content h1, .hero-content p { text-align: center; max-width: 100%; margin-left:auto; margin-right:auto; }
 .hero-actions { justify-content: center; }
}
@media (max-width: 500px) {
 .hero { padding-top: 120px; padding-bottom: 60px; }
 .hero-actions { flex-direction: column; }
}

/* -------------------
 *
 * 4. Section Styles
 *
 * ------------------- */
 
/* Trust Metrics */
.metrics-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
}
.metric-card {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
 text-align: center;
 transition: var(--transition);
}
.metric-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
 border-color: var(--secondary-color);
}
.metric-card .icon { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 16px; }
.metric-card h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; color: var(--primary-color);}

/* Benefits (Asymmetric Approach) */
.approach-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 60px;
 align-items: center;
}
.approach-content h2 { text-align: left; }
.approach-item {
 padding: 24px;
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 margin-bottom: 24px;
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.approach-item:hover {
 transform: translateX(10px);
 box-shadow: var(--shadow-lg);
}
.approach-item h3 { color: var(--primary-color); margin-bottom: 12px; }
.approach-visual {
 position: relative;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-xl);
 transform: scale(1.05);
}
@media (max-width: 900px) {
 .approach-grid { grid-template-columns: 1fr; }
 .approach-content h2 { text-align: center; }
 .approach-visual { max-width: 400px; margin: 40px auto 0; }
}

/* Services (Staggered Cards) */
.services-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 grid-auto-rows: 1fr;
 gap: 30px;
}
.service-card {
 background: var(--bg-white);
 padding: 32px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.service-card h3 { color: var(--primary-color); margin-bottom: 16px; font-size: 1.3rem; }
.service-card p { flex-grow: 1; }
.service-card:nth-child(2) { transform: translateY(20px); }
.service-card:nth-child(3n-1) { transform: translateY(40px); }
.service-card:nth-child(5) { transform: translateY(20px); }

@media (max-width: 1024px) {
 .services-grid { grid-template-columns: repeat(2, 1fr); }
 .service-card:nth-child(3n-1) { transform: translateY(0); }
 .service-card:nth-child(2n) { transform: translateY(30px); }
}
@media (max-width: 768px) {
 .services-grid { grid-template-columns: 1fr; gap: 24px; }
 .service-card, .service-card:nth-child(n) { transform: translateY(0); }
}

/* About (Flowing text) */
.about-flow-section {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 align-items: center;
 gap: 60px;
}
.about-flow-visual {
 position: relative;
 width: 300px;
 height: 300px;
 justify-self: center;
}
.about-flow-visual img {
 border-radius: 50%;
 width: 100%;
 height: 100%;
 object-fit: cover;
 box-shadow: var(--shadow-xl);
 border: 8px solid white;
}
.about-flow-content h2 { text-align: left; margin-bottom: 24px; }
.about-flow-content ul { list-style: none; padding: 0; }
.about-flow-content li {
 font-size: 1.1rem;
 padding-left: 30px;
 position: relative;
 margin-bottom: 16px;
}
.about-flow-content li::before {
 content: '';
 color: var(--secondary-color);
 position: absolute;
 left: 0;
 font-size: 1.2rem;
 line-height: 1.4;
}
@media (max-width: 768px) {
 .about-flow-section { grid-template-columns: 1fr; }
 .about-flow-visual { margin-bottom: 40px; }
 .about-flow-content h2 { text-align: center; }
}

/* Testimonials (Asymmetric grid) */
.testimonials-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr); 
 gap: 30px;
}
.testimonial-card {
 background: var(--bg-light);
 border-radius: var(--radius-lg);
 padding: 32px;
 border: 1px solid var(--border-color);
 position: relative;
 display: flex;
 flex-direction: column;
}
.testimonial-card::before {
 content: '“';
 position: absolute;
 top: 10px;
 left: 20px;
 font-size: 5rem;
 color: var(--secondary-color);
 opacity: 0.1;
 line-height: 1;
}
.testimonial-text { font-style: italic; margin-bottom: 24px; flex-grow: 1; z-index: 1;}
.testimonial-author {
 display: flex;
 align-items: center;
 gap: 16px;
 z-index: 1;
}
.testimonial-author img {
 width: 50px;
 height: 50px;
 border-radius: 50%;
 object-fit: cover;
}
.testimonial-author-info strong { color: var(--text-dark); display: block; }
.testimonial-author-info span { font-size: 0.9rem; color: var(--text-muted); }
.testimonials-grid .testimonial-card:nth-child(1) { grid-column: 1 / 3; }

@media (max-width: 1024px) {
 .testimonials-grid .testimonial-card:nth-child(1) { grid-column: 1 / -1; }
 .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
 .testimonials-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
 border-bottom: 1px solid var(--border-color);
}
.faq-question {
 padding: 24px 0;
 width: 100%;
 background: none;
 border: none;
 text-align: left;
 font-size: 1.2rem;
 font-weight: 700;
 color: var(--text-dark);
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.faq-question::after {
 content: '+';
 font-size: 2rem;
 font-weight: 300;
 color: var(--secondary-color);
 transition: transform 0.3s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out;
}
.faq-answer p { padding-bottom: 24px; }

/* Contact CTA (Diagonal) */
.contact-cta-section {
 position: relative;
 background: var(--primary-color);
 color: white;
 transform: skewY(-3deg);
 margin: 100px 0;
}
.contact-cta-content {
 transform: skewY(3deg);
 text-align: center;
 padding: 100px 0;
 display: flex;
 flex-direction: column;
 align-items: center;
}
.contact-cta-content h2 { color: white; }
.contact-cta-content p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 16px 0 32px; }
.contact-form-wrapper {
 background: white;
 padding: 40px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-xl);
 width: 100%;
 max-width: 700px;
 text-align: left;
}
.form-grid { display: grid; gap: 20px; }
.form-grid-cols { grid-template-columns: 1fr 1fr; }
.contact-form-wrapper h3 { margin-bottom: 24px; color: var(--text-dark); }
.form-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

@media (max-width: 768px) {
 .form-grid-cols { grid-template-columns: 1fr; }
 .contact-cta-section { transform: skewY(0); }
 .contact-cta-content { transform: skewY(0); }
}

/* -------------------
 *
 * 5. Footer (Asymmetric)
 *
 * ------------------- */
.footer {
 background: var(--bg-light);
 color: var(--text-light);
 padding-top: 80px;
 font-size: 0.9rem;
}
.footer a { color: var(--text-light); }
.footer a:hover { color: var(--primary-color); }

.footer-main {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 padding-bottom: 60px;
}
.footer-brand .footer-logo {
 font-size: 1.8rem;
 font-weight: 800;
 color: var(--primary-color);
 margin-bottom: 16px;
}
.footer-brand p { margin-bottom: 24px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
 width: 40px; height: 40px;
 display: flex; align-items: center; justify-content: center;
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: 50%;
 color: var(--text-light);
}
.footer-socials a:hover { background: var(--secondary-color); color: white; border-color: var(--secondary-color); }
.footer-socials svg { width: 20px; height: 20px; }

.footer-heading {
 font-weight: 700;
 color: var(--text-dark);
 margin-bottom: 20px;
 font-size: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 4px; color: var(--secondary-color); }
.footer-disclaimer {
 grid-column: 1 / -1;
 margin-top: 20px;
 font-size: 0.8rem;
 color: var(--text-muted);
}

.footer-bottom {
 border-top: 1px solid var(--border-color);
 padding: 30px 0;
 position: relative;
 overflow: hidden;
}

.footer-bottom::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 height: 4px;
 width: 100%;
 background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.footer-bottom-content {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.footer-legal a { margin-left: 20px; }

@media (max-width: 900px) {
 .footer-main { grid-template-columns: 1fr 1fr; }
 .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
 .footer-main { grid-template-columns: 1fr; gap: 30px; }
 .footer-bottom-content { flex-direction: column; gap: 16px; text-align: center; }
 .footer-legal { display: flex; flex-direction: column; gap: 8px; }
 .footer-legal a { margin-left: 0; }
}

/* -------------------
 *
 * 6. Other Pages & Components
 *
 * ------------------- */
 
/* Generic Page Header */
.page-header {
 padding: 140px 0 80px;
 background: var(--bg-light);
 text-align: center;
}
.page-header h1 {
 font-size: clamp(2.2rem, 5vw, 3.5rem);
 margin-bottom: 12px;
}
.page-header p {
 font-size: 1.1rem;
 color: var(--text-muted);
 max-width: 600px;
 margin: 0 auto;
}

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-card {
 text-align: center;
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.team-card img {
 width: 120px; height: 120px;
 border-radius: 50%;
 margin: 0 auto 20px;
 border: 4px solid var(--bg-light);
}
.team-card h3 { font-size: 1.25rem; }
.team-card span { color: var(--secondary-color); font-weight: 500; display: block; margin-bottom: 12px; }

/* Contact Page */
.contact-page-grid {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 50px;
 align-items: flex-start;
}
.contact-details h2 { text-align: left; }
.contact-details p { margin-bottom: 30px; }
@media (max-width: 900px) { .contact-page-grid { grid-template-columns: 1fr; } .contact-details h2 { text-align: center; } }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
 margin-top: 50px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Thank You Page */
.thank-you-section { text-align: center; padding: 100px 24px; }
.thank-you-section .icon { font-size: 4rem; color: var(--secondary-color); margin-bottom: 24px; }
.thank-you-section h1 { margin-bottom: 16px; }
.thank-you-section p { max-width: 500px; margin: 0 auto 32px; }

/* Legal Pages */
.legal-section { padding: 40px 0; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.8rem; margin: 40px 0 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.legal-content h3 { font-size: 1.4rem; margin: 30px 0 15px; }
.legal-content ul { list-style-position: inside; padding-left: 20px; }
.legal-content li { margin-bottom: 10px; }

/* Cookie banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--primary-color);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 box-shadow: var(--shadow-xl);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--accent-color); text-decoration: underline; }
.cookie-actions { display: flex; gap: 16px; }
.cookie-btn {
 padding: 10px 20px;
 border-radius: var(--radius-md);
 border: none;
 cursor: pointer;
 background: var(--secondary-color);
 color: white;
 font-weight: 600;
}
.cookie-btn.decline { background: var(--text-light); }

/* Animation */
[data-aos] {
 opacity: 0;
 transform: translateY(20px);
 transition-property: transform, opacity;
}