 :root {
   --bg: #f8fafc;
   --panel: #ffffff;
   --panel-alt: #f0f4f9;
   --text: #0f172a;
   --text-soft: #475569;
   --primary: #0ea5e9;
   --primary-dark: #0284c7;
   --primary-light: #38bdf8;
   --secondary: #bfdbfe;
   --accent: #dbeafe;
   --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
   --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.12);
   --radius: 24px;
   --radius-lg: 32px;
 }
 
 * {
   box-sizing: border-box;
 }
 
 html {
   scroll-behavior: smooth;
 }
 
 body {
   margin: 0;
   font-family: "Montserrat", sans-serif;
   background: var(--bg);
   color: var(--text);
   line-height: 1.6;
 }
 
 a {
   color: inherit;
   text-decoration: none;
 }
 
 img {
   max-width: 100%;
   display: block;
 }
 
 button,
 input {
   font: inherit;
 }
 
 .container {
   width: min(1280px, calc(100% - 40px));
   margin: 0 auto;
 }
 
 /* ========== HEADER ========== */
 
 .site-header {
   position: sticky;
   top: 0;
   z-index: 20;
   background: rgba(248, 250, 252, 0.92);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid rgba(14, 165, 233, 0.08);
   box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
 }
 
 .header-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   min-height: 92px;
   padding: 0 20px;
 }
 
 .brand-block {
   display: flex;
   align-items: center;
   gap: 16px;
 }
 
 .brand-logo {
   width: 54px;
   height: 54px;
   min-width: 54px;
   object-fit: contain;
   border-radius: 14px;
   background: rgba(255, 255, 255, 0.82);
   box-shadow: 0 12px 24px rgba(14, 165, 233, 0.12);
   border: 1px solid rgba(14, 165, 233, 0.08);
 }
 
 .brand-name {
   font-weight: 800;
   font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.5rem);
   letter-spacing: -0.01em;
   background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
 }
 
 .header-contacts {
   display: flex;
   align-items: center;
   gap: 20px;
 }
 
 .phone-link {
   font-weight: 700;
   color: var(--text);
   font-size: 0.95rem;
   transition: color 0.2s ease;
 }
 
 .phone-link:hover {
   color: var(--primary);
 }
 
 .telegram-link {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 48px;
   border-radius: 12px;
   background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
   color: var(--primary);
   transition: all 0.3s ease;
   border: 1px solid rgba(14, 165, 233, 0.2);
 }
 
 .telegram-link:hover,
 .telegram-link:focus-visible {
   transform: translateY(-3px);
   box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
   background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
 }
 
 .telegram-link svg {
   width: 22px;
   height: 22px;
   fill: currentColor;
 }
 
 /* ========== BUTTONS ========== */
 
 .primary-btn,
 .secondary-btn {
   border: none;
   border-radius: 999px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 1rem 1.8rem;
   font-weight: 700;
   font-size: 0.95rem;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   cursor: pointer;
   letter-spacing: 0.01em;
 }
 
 .primary-btn {
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
   color: white;
   box-shadow: 0 16px 32px rgba(14, 165, 233, 0.3);
 }
 
 .primary-btn:hover,
 .primary-btn:focus-visible {
   transform: translateY(-3px);
   box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
 }
 
 .primary-btn:active {
   transform: translateY(-1px);
 }
 
 .secondary-btn {
   background: rgba(255, 255, 255, 0.2);
   color: white;
   border: 1.5px solid rgba(255, 255, 255, 0.5);
   backdrop-filter: blur(12px);
 }
 
 .secondary-btn:hover,
 .secondary-btn:focus-visible {
   transform: translateY(-3px);
   background: rgba(255, 255, 255, 0.3);
   border-color: rgba(255, 255, 255, 0.8);
 }
 
 /* ========== HERO ========== */
 
 .hero {
   position: relative;
   min-height: 720px;
   display: flex;
   align-items: center;
   background: linear-gradient(135deg, #0c1e2e 0%, #1a3a52 50%, #0ea5e9 100%);
   background-size: 400% 400%;
   overflow: hidden;
 }
 
 .hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: 
     radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
     radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
   z-index: 0;
 }
 
 .hero-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg, rgba(12, 30, 46, 0.85) 0%, rgba(12, 30, 46, 0.4) 100%);
   z-index: 1;
 }
 
 .hero-inner {
   position: relative;
   z-index: 2;
   width: min(1280px, calc(100% - 40px));
   margin: 0 auto;
   display: flex;
   justify-content: flex-start;
   padding: 120px 20px 100px;
 }
 
 .hero-content {
   max-width: 680px;
   color: white;
   animation: fadeInUp 0.8s ease-out;
 }
 
 @keyframes fadeInUp {
   from {
     opacity: 0;
     transform: translateY(30px);
   }
   to {
     opacity: 1;
     transform: translateY(0);
   }
 }
 
 .eyebrow {
   margin: 0 0 20px;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   font-size: 0.75rem;
   font-weight: 800;
   color: rgba(255, 255, 255, 0.7);
 }
 
 .eyebrow-dark {
   color: var(--primary);
 }
 
 .hero h1,
 .section-heading h2,
 .founder-content h2 {
   margin: 0 0 20px;
   font-family: "Playfair Display", serif;
   line-height: 1.15;
   font-weight: 700;
 }
 
 .hero h1 {
   font-size: clamp(3rem, 5vw, 5.5rem);
   text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
 }
 
 .hero-text {
   margin: 0 0 36px;
   max-width: 580px;
   font-size: 1.15rem;
   color: rgba(255, 255, 255, 0.85);
   line-height: 1.7;
 }
 
 .hero-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 18px;
 }
 
 /* ========== SECTIONS ========== */
 
 section {
   padding: 120px 0;
 }
 
 .section-heading {
   margin-bottom: 48px;
   text-align: center;
 }
 
 .section-heading h2,
 .founder-content h2 {
   font-size: clamp(2.2rem, 2.6vw, 3.5rem);
   color: var(--text);
   margin-bottom: 0;
 }
 
 .cards-grid,
 .pricing-grid,
 .teachers-grid,
 .footer-grid {
   display: grid;
   gap: 32px;
 }
 
 .directions-grid {
   grid-template-columns: repeat(4, minmax(0, 1fr));
 }
 
 .info-card,
 .pricing-card,
 .teacher-card {
   background: var(--panel);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow);
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   border: 1px solid rgba(14, 165, 233, 0.08);
 }
 
 .info-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--shadow-lg);
   border-color: rgba(14, 165, 233, 0.2);
 }
 
 .card-image {
   height: 260px;
   overflow: hidden;
   background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
 }
 
 .card-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 .info-card:hover .card-image img {
   transform: scale(1.08);
 }
 
 .card-content {
   padding: 28px 24px 32px;
 }
 
 .card-content h3,
 .pricing-card h3,
 .teacher-card h3,
 .site-footer h3 {
   margin: 0 0 12px;
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--text);
 }
 
 .card-content p,
 .teacher-card p,
 .founder-content p,
 .site-footer p,
 .site-footer li,
 .pricing-card li {
   margin: 0;
   color: var(--text-soft);
   font-size: 0.95rem;
   line-height: 1.6;
 }
 
 /* ========== PRICING ========== */
 
 .pricing {
   background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
   position: relative;
 }
 
 .pricing::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 1px;
   background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
 }
 
 .pricing-grid {
   grid-template-columns: repeat(3, minmax(0, 1fr));
 }
 
 .pricing-card {
   position: relative;
   padding: 36px 28px;
   text-align: center;
   display: flex;
   flex-direction: column;
 }
 
 .pricing-card ul {
   list-style: none;
   padding: 0;
   margin: 28px 0 32px;
   display: grid;
   gap: 14px;
   flex-grow: 1;
 }
 
 .pricing-card li {
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.9rem;
   color: var(--text-soft);
 }
 
 .pricing-card li:before {
   content: "✓";
   display: inline-block;
   width: 20px;
   height: 20px;
   margin-right: 10px;
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.75rem;
   font-weight: 800;
 }
 
 .price {
   font-family: "Playfair Display", serif;
   font-size: clamp(2.2rem, 2.4vw, 3.5rem);
   margin: 20px 0 8px;
   color: var(--primary-dark);
   font-weight: 700;
 }
 
 .featured {
   border: 2px solid var(--primary);
   transform: translateY(-12px);
   box-shadow: 0 24px 48px rgba(14, 165, 233, 0.2);
   background: linear-gradient(135deg, rgba(14, 165, 233, 0.02) 0%, rgba(56, 189, 248, 0.02) 100%);
 }
 
 .featured .badge {
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
   color: white;
   box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
 }
 
 .badge {
   position: absolute;
   top: 24px;
   right: 24px;
   background: var(--secondary);
   color: var(--primary-dark);
   border-radius: 999px;
   padding: 0.5rem 1rem;
   font-weight: 800;
   font-size: 0.7rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   transition: all 0.3s ease;
 }
 
 /* ========== FOUNDER ========== */
 
 .founder {
   background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.03) 100%);
 }
 
 .founder-inner {
   display: grid;
   grid-template-columns: 480px 1fr;
   gap: 64px;
   align-items: center;
 }
 
 .founder-photo {
   position: relative;
 }
 
 .founder-photo::before {
   content: "";
   position: absolute;
   inset: -8px;
   border-radius: 32px;
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
   z-index: -1;
   opacity: 0.15;
 }
 
 .founder-photo img {
   width: 100%;
   height: 580px;
   object-fit: cover;
   border-radius: 28px;
   box-shadow: var(--shadow-lg);
   position: relative;
   z-index: 1;
 }
 
 .founder-content {
   max-width: 680px;
 }
 
 .founder-content h2 {
   font-size: clamp(2.2rem, 2.6vw, 3rem);
   margin-bottom: 24px;
 }
 
 .founder-content p {
   margin-bottom: 20px;
   font-size: 1.05rem;
   line-height: 1.8;
   color: var(--text-soft);
 }
 
 .founder-content p:last-child {
   margin-bottom: 0;
 }
 
 /* ========== TEACHERS ========== */
 
 .teachers-grid {
   grid-template-columns: repeat(4, minmax(0, 1fr));
 }
 
 .teacher-card {
   padding: 0;
   position: relative;
   overflow: hidden;
 }
 
 .teacher-card::before {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 120px;
   background: linear-gradient(180deg, transparent 0%, rgba(12, 30, 46, 0.8) 100%);
   z-index: 2;
   transition: all 0.4s ease;
 }
 
 .teacher-card:hover::before {
   height: 140px;
 }
 
 .teacher-card img {
   width: 100%;
   height: 340px;
   object-fit: cover;
   transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 .teacher-card:hover img {
   transform: scale(1.06);
 }
 
 .teacher-card h3,
 .teacher-card p {
   position: absolute;
   left: 0;
   right: 0;
   z-index: 3;
   color: white;
   padding-left: 24px;
   padding-right: 24px;
 }
 
 .teacher-card h3 {
   bottom: 48px;
   font-size: 1.4rem;
 }
 
 .teacher-card p {
   bottom: 12px;
   font-size: 0.85rem;
   color: rgba(255, 255, 255, 0.8);
   line-height: 1.4;
 }
 
 /* ========== FOOTER ========== */
 
 .site-footer {
   background: linear-gradient(135deg, #0f172a 0%, #1a3a52 100%);
   color: white;
   padding: 80px 0 50px;
   position: relative;
   overflow: hidden;
 }
 
 .site-footer::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: 
     radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
     radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
   z-index: 0;
 }
 
 .footer-grid {
   grid-template-columns: repeat(4, minmax(0, 1fr));
   align-items: start;
   position: relative;
   z-index: 1;
 }
 
 .site-footer h3 {
   margin-bottom: 22px;
   color: white;
   font-size: 1.1rem;
 }
 
 .footer-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: grid;
   gap: 14px;
 }
 
 .footer-list a,
 .site-footer p {
   color: rgba(255, 255, 255, 0.75);
   transition: color 0.3s ease;
   font-size: 0.95rem;
 }
 
 .footer-list a:hover {
   color: var(--primary-light);
 }
 
 .map-box {
   overflow: hidden;
   border-radius: 16px;
   height: 200px;
   border: 1px solid rgba(255, 255, 255, 0.1);
 }
 
 .map-box iframe {
   width: 100%;
   height: 100%;
   border: 0;
 }
 
 /* ========== MODAL ========== */
 
 .modal-overlay {
   position: fixed;
   inset: 0;
   background: rgba(15, 23, 42, 0.7);
   backdrop-filter: blur(8px);
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease;
   z-index: 100;
 }
 
 .modal-overlay.is-open {
   opacity: 1;
   visibility: visible;
 }
 
 .modal {
   position: relative;
   width: min(520px, 100%);
   background: white;
   border-radius: 28px;
   padding: 40px 36px;
   box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
   animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 @keyframes modalIn {
   from {
     opacity: 0;
     transform: scale(0.95) translateY(-20px);
   }
   to {
     opacity: 1;
     transform: scale(1) translateY(0);
   }
 }
 
 .modal h3 {
   margin: 0 0 24px;
   text-align: center;
   font-size: 1.8rem;
   font-weight: 800;
   color: var(--text);
 }
 
 .modal-close {
   position: absolute;
   top: 16px;
   right: 16px;
   border: none;
   background: transparent;
   font-size: 2rem;
   line-height: 1;
   cursor: pointer;
   color: var(--text-soft);
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 12px;
   transition: all 0.2s ease;
 }
 
 .modal-close:hover {
   background: var(--accent);
   color: var(--primary);
 }
 
 .trial-form {
   display: grid;
   gap: 20px;
 }
 
 .trial-form label {
   display: grid;
   gap: 10px;
   color: var(--text);
   font-weight: 700;
   font-size: 0.95rem;
 }
 
 .trial-form input {
   width: 100%;
   border: 2px solid var(--accent);
   border-radius: 14px;
   padding: 12px 16px;
   background: var(--panel-alt);
   font-size: 1rem;
   transition: all 0.3s ease;
 }
 
 .trial-form input:focus {
   outline: none;
   border-color: var(--primary);
   background: white;
   box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
 }
 
 .form-success {
   margin-top: 20px;
   background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
   color: #1e7e54;
   border: 1px solid rgba(34, 197, 94, 0.2);
   border-radius: 12px;
   padding: 12px 16px;
   text-align: center;
   font-weight: 700;
   font-size: 0.95rem;
 }
 
 /* ========== RESPONSIVE ========== */
 
 @media (max-width: 1024px) {
   .directions-grid {
     grid-template-columns: repeat(2, minmax(0, 1fr));
   }
 
   .pricing-grid,
   .teachers-grid,
   .footer-grid {
     grid-template-columns: repeat(2, minmax(0, 1fr));
   }
 
   .founder-inner {
     grid-template-columns: 1fr;
     gap: 48px;
   }
 
   .founder-photo img {
     height: 420px;
   }
 
   .hero-inner {
     padding: 80px 20px 60px;
   }
 }
 
 @media (max-width: 720px) {
   .header-inner {
     flex-direction: column;
     justify-content: center;
     padding: 16px 20px;
     min-height: auto;
     gap: 16px;
   }
 
   .brand-block {
     gap: 12px;
   }
 
   .brand-logo {
     width: 46px;
     height: 46px;
     min-width: 46px;
   }
 
   .brand-name {
     font-size: 1.05rem;
   }
 
   .header-contacts {
     width: 100%;
     justify-content: center;
     flex-wrap: wrap;
   }
 
   .phone-link {
     font-size: 0.85rem;
   }
 
   .hero {
     min-height: 600px;
   }
 
   .hero-inner {
     padding: 60px 20px 40px;
   }
 
   .hero h1 {
     font-size: 2.4rem;
   }
 
   .hero-text {
     font-size: 1rem;
     margin-bottom: 28px;
   }
 
   .directions-grid,
   .pricing-grid,
   .teachers-grid,
   .footer-grid {
     grid-template-columns: 1fr;
   }
 
   .section-heading h2,
   .founder-content h2 {
     font-size: 2rem;
   }
 
   .hero-actions {
     flex-direction: column;
     width: 100%;
   }
 
   .secondary-btn,
   .primary-btn {
     width: 100%;
   }
 
   .featured {
     transform: translateY(0);
   }
 
   .teacher-card h3 {
     font-size: 1.2rem;
   }
 
   section {
     padding: 80px 0;
   }
 
   .modal {
     padding: 32px 24px;
   }
 
   .modal h3 {
     font-size: 1.5rem;
     margin-bottom: 20px;
   }
 }
