@import "theme.css";

/* ============================================
   BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-body);
    color:var(--text-secondary);
}

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

a, button {outline: none;}

h1, h2, h3, h4, h5, h6 { font-weight: 900; line-height: 1.2; color:var(--text-primary);}
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; line-height: 1.2; color:var(--text-primary);}

h1 {font-size: 2.25rem; line-height: 1.1;}
h2, .h2 {font-size: 2.25rem; margin-bottom: 2rem;}
h3, .h3 {font-size: 1.5rem; margin-bottom: 1.5rem;}
h4, .h4 {font-size: 1.25rem; margin-bottom: 1rem;}
h5, .h5 {font-size: 1.125rem; margin-bottom: 1rem;}
h6, .h6 {font-size: 1rem; margin-bottom: 0.75rem;}


/* TEMP FOR SALE */




/* LAYOUT & GRIDS */

.grid-row {display: grid; gap:3rem; grid-template-columns: repeat(12, 1fr); grid-auto-flow: row dense; }
.grid-row .gcol-4 {grid-column: span 4;}
.grid-row .gcol-8 {grid-column: span 8;}


/* GRIDS */


.grid-24 {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 50vh;
}

.grid-item {background: #eee;}

.g24-layout-1 .item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.g24-layout-1 .item-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.g24-layout-1 .item-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.g24-layout-1 .item-4 { grid-column: 1 / 2; grid-row: 2 / 3; }
.g24-layout-1 .item-5 { grid-column: 2 / 3; grid-row: 2 / 3; }
.g24-layout-1 .item-6 { grid-column: 3 / 5; grid-row: 2 / 3; }


.g24-layout-2 .item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.g24-layout-2 .item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.g24-layout-2 .item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.g24-layout-2 .item-4 { grid-column: 3 / 4; grid-row: 1 / 3; }
.g24-layout-2 .item-5 { grid-column: 4 / 5; grid-row: 1 / 2; }
.g24-layout-2 .item-6 { grid-column: 4 / 5; grid-row: 2 / 3; }


.g24-layout-3 .item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.g24-layout-3 .item-2 { grid-column: 1 / 2; grid-row: 2 / 3; }
.g24-layout-3 .item-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
.g24-layout-3 .item-4 { grid-column: 3 / 4; grid-row: 1 / 3; }
.g24-layout-3 .item-5 { grid-column: 4 / 5; grid-row: 1 / 2; }
.g24-layout-3 .item-6 { grid-column: 4 / 5; grid-row: 2 / 3; }



.gr-item-red {background: #E00A20; }
.gr-item-dark {background: #232323; }


.gr-item-img-filter-red {background-blend-mode: multiply;  background-color: #E00A20; background-size:cover; background-repeat: no-repeat; background-position: center center;}

.gr-item-img-filter-dark {background-blend-mode: multiply;  background-color: #444; background-size:cover; background-repeat: no-repeat; background-position: center center;}

.gr-item-content {padding: 30px; color: #fff; box-sizing: border-box; height: 100%; display: flex; flex-direction: column; justify-content: space-between;}
.gr-item-content .title {text-transform: uppercase; font-size: 24px; line-height: 1.2; margin-bottom: 15px;}
.gr-item-content .desc {font-weight:300; opacity: .8; line-height: 1.2;}
.gr-item-content a {color:#fff;}
.gr-item-content .bottom {margin-top: 30px}

.gr-item-content.text-dark {color:#232323;}
.gr-item-content.text-dark a {color:#232323;}
.gr-item-content.text-dark .btn-1 {color:#fff;}

/* END GRIDS */

/* ELEMENTS & UTILITIES ===== */


pre {
  white-space: pre-wrap;      /* Keeps line breaks + wraps long lines */
  word-wrap: break-word;      /* Prevents overflow from long words/URLs */
  hyphens: manual;            /* Respects your typed hyphens, disables auto-hyphenation */
  overflow-x: auto;           /* Fallback: horizontal scroll if wrapping fails */
  font-family: inherit;       /* Optional: match your site font */
  font-size: 1rem;
}

.hint {font-size: .85rem; color:var(--text-muted);}


/* Базовые стили кнопки */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  
  /* Скрыта по умолчанию */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
  z-index: 9999;
}

/* Состояние видимости */
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Hover / Active */
.scroll-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Адаптив */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

/* Уважение к предпочтениям пользователя */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: none;
  }
}

/* Custom Button Styles */

.btn-icon {display: inline-flex; align-items: center; gap: 0.5rem;}

.btn-primary-tm {background-color: var(--primary); color: var(--text); border: solid 1px var(--border);}
.btn-primary-tm:hover, .btn-primary-tm:active {background-color: var(--primary-hover);}

.btn-light-tm {background-color: var(--primary-bg); color: var(--text);}
.btn-light-tm:hover, .btn-light-tm:active {background-color: #87c495; color: var(--text);}

.btn-accent-tm {background-color:var(--accent); color: var(--accent-text);}
.btn-accent-tm:hover, .btn-accent-tm:active {background-color:var(--accent-hover); color: var(--accent-text);}


.bg-light-tm {background: var(--primary-bg);}

.bg-cover {background-position: center; background-repeat: no-repeat; background-size: cover;}
.bg-card {background-color: var(--bg-card);}
.border-card {border: solid 1px var(--border);}

.text-gradient {background: linear-gradient(135deg, var(--accent), var(--accent-second)); background-clip:text;}
.ds-gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-second));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item a {display: flex; gap: 0.75rem; align-items: center; line-height: 1;}
.contact-item a .icon {flex: 0 0 1.5rem; height:1.5rem;}
.contact-item a .contact {display: inline-block; font-size: 1.125rem; font-weight: 600;}

.contact-items {display: flex; gap:.75rem;}
.contact-items .icon {width:1.5rem; height:1.5rem;}


/* Fixed Bar for Sell */

.fixed-bar {position: fixed; bottom:0; left:0; right:0; padding:.5rem 1rem; background-color: var(--accent-bg); z-index:100; box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);}

/* Cards */

.card {background: var(--bg-card); border-radius: .5rem; padding:1rem; border: solid 1px var(--border); color:var(--text-primary);}
.card-hover {transition: transform var(--transition-normal), box-shadow var(--transition-normal);}
.card-hover:hover {transform: translateY(-5px);box-shadow: var(--shadow-lg);}


.card-media {display: flex; border-radius: .5rem; overflow: hidden; border: solid 1px var(--border); background: var(--bg-card);}
.card-media a {color: var(--text-secondary);}
.card-media .media {flex:0 0 40%}
.card-media .content {padding: 1.5rem; background: var(--bg-grey); flex: 1 0 60%; display: flex; flex-direction: column; justify-content: space-between;}

.card-media.article {flex-direction: column;}
.card-media.article .media {flex: 0 0 45%;}
.card-media.article .content {flex: 0 0 55%;}

.nav ul  {list-style: none; padding: 0; margin:0;}
.nav-cards ul {display: flex; gap:1rem; flex-wrap: wrap;}
.nav-cards a {padding: 1rem; background: var(--bg-grey); border-radius: .5rem; color:var(--text); font-size: 1.25rem; font-weight: 700; border: solid 1px var(--border);}

.service-card {min-height: 10rem; display: flex; flex-direction: column; justify-content: space-between;}


.card.price-plan {background-color: white; }

.price-plan ul li {display: flex; gap: .75rem; align-items: center;}
/* Features */
.feature-grid {display: grid; grid-auto-flow: row dense; gap:2rem;}

.grid-2 {grid-template-columns: repeat(1, 1fr);}
.grid-3 {grid-template-columns: repeat(1, 1fr);}
.grid-4 {grid-template-columns: repeat(1, 1fr);}
.grid-5 {grid-template-columns: repeat(1, 1fr);}



.feature-grid .item {display: flex; flex-direction: column; gap:1rem;}
.feature-grid .item-row {flex-direction: row;  gap:1rem;}
.feature-grid .item .body {display: flex; flex-direction: column; gap:.5rem; line-height: 1.3;}
.feature-grid .item .title {font-weight: 700; font-size: 1.25rem;}
.feature-grid .item .text {}




/* Content Blocks */

.content-block .boxed {font-size: 1.5rem; line-height: 1.4; padding: 2rem; border-radius: .5rem; background: var(--bg-grey);}
.content-block .quote {font-size: 1.5rem; line-height: 1.4; padding: 2rem; border-radius: .5rem; background: var(--primary-bg); border-left: solid 4px var(--primary-accent);}

.richtext p {font-size: 1.125rem;}
.richtext ul li {font-size: 1.125rem; margin-bottom: .5rem;}

/* HEADER ===== */

.nav-desktop ul {padding:0; list-style: none; margin: 0; display: flex; gap: 10px 20px; flex-wrap:wrap;}
.nav-desktop ul li a {font-size: 1.125rem; font-weight: 600;}


/* burger */
.btn.burger {background: none; padding: 5px 0;}
.burger span {display: block; height: 4px; background: var(--link); width: 24px;}
.burger span:not(:last-child) {margin-bottom: 4px;}
.burger.close {height:24px;}
.burger.close {height:24px;}
.close .burger span:first-child {transform: rotate(45deg) translate(9px, 3px);}
.close .burger span:last-child {transform: rotate(-45deg) translate(3px, 3px);}

.logo {flex: 0 0 120px; width:120px;}
.logo img, .logo a {display: inline-block; width:100%;}

.header-mobile {padding:5px 10px; background-color: var(--primary-bg); align-items: center; justify-content: space-between;}
.header-mobile .controls {display: flex; gap:10px; align-items: center;}
.header-mobile .controls .phone .contact {display: none;}


.fixed-on-scroll {position:static;}
.header-mobile.fixed {position:fixed; left:0; right:0; top:0; box-shadow: 0 5px 10px rgba(0,0,0,.2); z-index: 120;}
.fixed-button {display: none;}
.fixed-button.fixed {top:10px; right:10px; width:50px; height:50px; border-radius: 25px; background: var(--primary-bg); box-shadow: 0 2px 10px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; position: fixed;}

/* slide right fixed panel */
.sidebar {position: fixed; top:0; right:-100%; bottom:0; width: 300px; transition: all .3s; background: var(--primary-bg); z-index:150; box-shadow: -10px 0 20px rgba(0,0,0,.2); padding:20px;}


.sidebar nav.main ul {flex-direction: column; align-items: flex-start !important; justify-content: flex-start; list-style: none; padding: 0;}
.sidebar nav.main ul li:not(:last-child) {margin-bottom: 10px;}
.sidebar nav.main ul li a:not(.btn) {padding:0;}
.sidebar.open {right:0; transition: all .3s; }
.sidebar .close {position: absolute; right:10px; top:10px; }


/* FOOTER ===== */

.footer {background: var(--primary-dark); color:var(--text-secondary);}
.footer a {color:var(--link);}
.footer a:hover {color: var(--link-hover);}

.footer-legal {display: flex; gap:10px 20px; flex-wrap: wrap;}
.footer-legal a {opacity: .5;}

/* PAGE BLOCKS ===== */



/* Hero */ 

.hero-wide {position: relative;}
.hero-page {position: relative; border-radius: 1rem; overflow: hidden;}

.hero-overlay {position: absolute; left:0; top:0; bottom:0; right:0; background: linear-gradient(180deg,rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);}

.hero-content {color:white; min-height: 50vh; position: relative; z-index:20; display: flex; flex-direction: column; justify-content: flex-end; gap:2rem;}


.hero-section {
  background: var(--primary-bg);
}

/* ── LEFT card ──────────────────────────────────────────────── */
.hero-card-left {
  background: var(--primary);
  border-radius: 24px;
  padding: 44px 40px 40px;
  color: #fff;
  height: 100%;
  display: flex;
  gap:20px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}


    
.hero-card-right {
  background: #fff;
  border-radius: 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.hero-card-right img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* hero speech bubbles */
.bubble {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  font-size: .8rem;
  padding:8px 16px;
  font-weight: 700;
  color: #0e2b1f;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  bottom: 5%; left: 5%;
  max-width: 90%;
}


/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-card-right { min-height: 280px; }
  .hero-card-left  { padding: 32px 28px 28px; }
}

.hero-service-list {border-left: solid 1px var(--accent); padding: 1rem 0 1rem 2rem;}
.hero-service-list ul {list-style: none; margin:0; padding:0; font-size: 1.25rem;}
.hero-service-list ul li a { display: inline-block;}

/* About */

.about {
  display: grid; 
  grid-template-columns: 3fr 4fr;
  gap: 4rem;
  align-items: center;
}

.about__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 60px rgba(14, 34, 71, .14);
}

.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.about__heading {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about__desc {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.4;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.about__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 4px;
}


@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__img-wrap { max-width: 480px; margin: 0 auto; width: 100%; }
}



/* Service + Price */

.service-price {display: flex; justify-content: space-between; gap: 10px; background-color: var(--bg-card); flex-direction: column; border-bottom: dashed 1px var(--border); padding-bottom: 0.5rem;}
.service-price:last-child {margin:0; border: none; padding:0;}
.service-price dt, .service-price dd {line-height: 1.2;}
.service-price dt { flex: 0 1 auto; font-weight: 400;}
.service-price dd {white-space: nowrap; flex: 0 0 auto; font-weight: 700;}
.service-price .line {  display: none;}


/* Team */

.team-item .image {flex: 0 0 150px; max-width: 150px;}




/* Gallery */

.grid-gallery {display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; grid-auto-flow: row;}



/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print,
    header,
    footer,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}





/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px; /* Позволяет центрировать на мобильных */
  max-width: 420px; /* Компактная ширина на ПК */
  background: #ffffff;
  border-radius: 16px; /* Закругленные углы */
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 27, 49, 0.15));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 1060; /* Поверх всех элементов, включая модальные окна */
  
  /* Анимация появления снизу */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.8125rem; /* Компактный шрифт (13px) */
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.cookie-text a:hover {
  color: var(--link);
}

.btn-cookie {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px; /* Легкое закругление кнопки */
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap; /* Чтобы текст кнопки не переносился */
  transition: background var(--transition-fast);
}

.btn-cookie:hover,
.btn-cookie:active {
  background: var(--link);
}

/* Адаптация для мобильных экранов (Mobile First) */
@media (max-width: 575px) {
  .cookie-notice {
    flex-direction: column;
    text-align: center;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 1rem;
    gap: 1rem;
  }
  
  .btn-cookie {
    width: 100%; /* Кнопка на всю ширину для удобства нажатия пальцем */
    padding: 0.75rem;
  }
}


/* PLUGINS */

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {bottom:20px;}

.swiper {padding-bottom: 50px;}

.swiper-slide {height: auto;}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-accent);
}



/* ============================================
   FANCYBOX CUSTOM STYLES
   ============================================ */

[data-fancybox] {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

[data-fancybox] img {
    transition: transform var(--transition-normal);
}

[data-fancybox]:hover img {
    transform: scale(1.05);
}

/* ============================================
   AOS ANIMATION FIXES
   ============================================ */

[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Отключение анимации для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* ============================================
   MEDIA QUERIES - BOOTSTRAP BREAKPOINTS
   ============================================ */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    h1 {font-size: 2rem;}

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Стили для md */
    .header-mobile .controls .phone .contact {display: inline-block;}

    .logo {flex: 0 0 240px; width:240px;}
    .grid-gallery { grid-template-columns: 1fr 1fr 1fr;}
    .service-price {flex-direction: row;}
    .service-price dd.line {display: block;}
}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Стили для lg */


  .nav-desktop ul {gap: 30px;}
    .grid-gallery { grid-template-columns: 1fr 1fr 1fr 1fr;}
    .about__features {grid-template-columns: 1fr 1fr;}

    .grid-2 {grid-template-columns: repeat(2, 1fr);}
    .grid-3 {grid-template-columns: repeat(3, 1fr);}
    .grid-4 {grid-template-columns: repeat(4, 1fr);}
    .grid-5 {grid-template-columns: repeat(5, 1fr);}

    .hero-service-list {padding: 1rem 0 1rem 3rem;}
    .hero-service-list ul {font-size: 1.5rem;}
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    h1 {font-size: 3rem; line-height: 1.1;}
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* Стили для xxl */
}
