/* =====================
   Animations
   ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}


/* Для анимаций при скролле */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-on-scroll {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.slide-on-scroll.animated {
    opacity: 1;
    transform: translateX(0);
}

h1, .title-main, h2, .title-secondary {
    animation: slideInLeft 1s cubic-bezier(.4,0,.2,1) both;
}

h1, .title-main {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 68px;
    margin: 0;
    padding-top: 0;
}

h2, .title-secondary {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 23px;
    margin: 0;
    padding-top: 0;
}

.button, .button-primary {
    transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover, .button-primary:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px 0 rgba(40,53,115,0.18);
    cursor: pointer;
}

.service-icon {
    transition: transform 0.3s, color 0.3s;
}
.service-icon:hover {
    animation: pulse 0.6s;
    color: #3d5355;
    cursor: pointer;
}

/* =====================
    1. Base Styles
    ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 400;
    color: #5a5a5a;
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
h2,
.title-secondary {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 23px;
}
h3,
h4,
.title-small {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 500;
    color: #969888;
}
h4 {
    font-size: 30px;
}
.h_text {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    color: #2c4042;
}
.text {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 400;
    color: #666;
}
.subtitle-small {
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #9e8843;
}

/* =====================
    3. Accessibility
    ===================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}
.skip-link:focus {
    top: 6px;
}

/* =====================
    4. Buttons
    ===================== */
.button-contact {
    display: inline-block;
    margin-top: 60px;
}
.button {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 500;
    border-radius: 24px;
    background-color: #2c4042;
    color: #ffffff;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 17px 40px;
    min-height: 44px;
    min-width: 44px;
}
.button:hover {
    box-shadow: 1px 1px 5px 0px rgb(40 53 115 / 62%);
    background-color: #3d5355;
}
.button-primary {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 17px 40px;
}

/* =====================
    5. Layout
    ===================== */
.container {
    margin: 0 auto;
    max-width: 1170px;
    width: 100%;
    padding: 0 25px;
    box-sizing: border-box;
}

/* =====================
    6. Header & Navigation
    ===================== */
.headerPage {
    position: fixed;
    width: 100%;
    z-index: 10;
    top: auto;
    box-shadow: 0 0 10px rgb(0 0 0 / 63%);
    background-color: white;
}
.headerNav {
    text-align: right;
    margin-right: 123px;
}
.headerNav > ul > li {
    display: inline-block;
}
.headerNav > ul > li > a {
    display: block;
    position: relative;
    margin: 15px 24px;
    color: #540f23;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}
.headerNav a,
.hidden-menu a,
.price-item a {
    text-decoration: none;
}
.headerNav > ul > li > a:hover {
    color: #b69d4b;
    cursor: pointer;
}

/* =====================
    7. Sections: Hero, About
    ===================== */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.hero-section {
    background-image: url('../img/woman12.png'), url('../img/Rectangle.png'), linear-gradient(to top right, #bad4d314, #ebfffead), url('../img/bokeh1.jpg');
    background-repeat: no-repeat;
    background-position: right bottom, center bottom, center top;
}
.hero-content {
    height: 850px;
    text-align: left;
    color: #36353e;
    padding-top: 300px;
}
.about-section {
    padding: 80px 0px 60px 0px;
}
.about-content {
    text-align: justify;
}
.about-content::after {
    content: "";
    display: table;
    clear: both;
}
.margin {
    margin-top: 60px;
}
.photo-container {
    margin-top: 18px;
    width: 300px;
    height: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.photo-inner {
    height: auto;
    border: 8px solid #c6e7ea;
    display: block;
}
.photo-inner > img {
    width: 100%;
    height: auto;
    display: block;
}
.about-content > div > h2,
.about-row-text > h2 {
    margin-bottom: 13px;
    color: #232323;
    font-size: 35px;
}
.about-content > div > h3,
.about-row-text > h3 {
    margin-bottom: 30px;
    color: #727272;
    font-size: 16px;
}
h5 {
    padding: 42px 0 3px 0;
    color: #232323;
    font-size: 28px;
}
.about-row {
    margin-bottom: 60px;
    overflow: visible;
}
.about-row::after {
    content: "";
    display: table;
    clear: both;
}
.about-row-text {
    display: block;
}
.about-row-text h4 {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.about-row-text h4:first-child {
    margin-top: 0;
}
.about-row-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.about-row-text p:last-child {
    margin-bottom: 0;
}
.about-row-text strong {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}
.about-row-text .button {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 12px 30px;
}
.expand-button {
    border: none;
    cursor: pointer;
    background-color: #2c4042;
    color: #ffffff;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 500;
    border-radius: 24px;
    font-size: 14px;
    padding: 12px 30px;
    position: relative;
    z-index: 1;
    min-height: 44px;
    min-width: 44px;
}
.expand-button:hover {
    box-shadow: 1px 1px 5px 0px rgb(40 53 115 / 62%);
    background-color: #3d5355;
}
.expandable-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
    margin-top: 0;
}
.expandable-content.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}
.expandable-content[aria-hidden="false"] {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}
.about-row-image {
    float: right;
    margin-left: 100px;
    margin-bottom: 20px;
    margin-right: 0;
}
.about-row-text {
    padding-right: 400px;
    margin-right: 0;
    min-width: 0;
}
.about-row-image-first {
    margin-bottom: 40px;
}
.about-row-image-first .photo-container,
.about-row-image-small .photo-container {
    width: 300px;
    max-width: 300px;
}
.about-row-image-first .photo-container {
    height: auto;
    overflow: visible;
}
.about-row-image-first .photo-inner {
    height: auto;
    overflow: visible;
}
.about-row-image-first .photo-inner img {
    width: 100%;
    height: auto;
    display: block;
}
.about-row-image-small .photo-container {
    height: auto;
}
.about-row-image-small .photo-inner img {
    width: 100%;
    height: auto;
    display: block;
}
.about-row-text-only {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
}
.about-text-column {
    display: flex;
    flex-direction: column;
}
.about-text-column ul {
    margin-top: 20px;
    margin-bottom: 0;
}
.about-text-column-full {
    grid-column: 1 / -1;
}
.about-text-column-full ul {
    margin-top: 20px;
    margin-bottom: 20px;
}
.about-text-column-full ul:last-of-type {
    margin-bottom: 30px;
}
.about-text-column-full .button {
    display: inline-block;
    margin-top: 0;
    padding: 17px 40px;
    text-decoration: none;
}
.about-text-column-full h3 {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.about-text-column-full h3:first-child {
    margin-top: 0;
}
.about-text-column-full p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.about-text-column-full p:last-child {
    margin-bottom: 0;
}
.about-content ul,
.about-row-text ul,
.about-text-column ul {
    padding-left: 20px;
    margin-left: 0;
}
.about-content li,
.about-row-text li,
.about-text-column li {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 8px;
}

    /* =====================
    8. Services Section
    ===================== */
.services-section {
    background-color: #f8f9fb;
    padding: 50px 0px 40px 0px;
}
.services-content {
    text-align: justify;
}
.services-content > div:nth-child(2) {
    display: flex;
}
.services-content > div:nth-child(2) > div {
    margin: 30px 20px 0px 0px;
    flex-grow: 1;
}
.services-content>div:nth-child(2)>div>div {
    margin-bottom: 25px;
}
.services-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}
.services-category {
    margin-bottom: 40px;
}
.services-category-title {
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 600;
    color: #2c4042;
    font-size: 20px;
    margin-bottom: 25px;
    margin-top: 0;
}
.services-category > div > div {
    margin-bottom: 45px;
}
.service-icon {
    float: left;
    font-size: 24px;
    color: #8bbbb9;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.service-icon:hover {
    transform: scale(1.1);
    color: #6ba8a5;
}
.services-content>div>div>div>a,
.services-content>div>div>div>p,
.services-category > div > div > a {
    display: block;
    text-decoration: none;
    margin: 0 20px 0 40px;
    color: #232323;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.services-content>div>div>div>a:hover,
.services-category > div > div > a:hover {
    color: #6ba8a5;
    text-decoration: underline;
    cursor: pointer;
}
.services-content>div>div>div>a p,
.services-category > div > div > a p {
    margin: 0;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}
.services-content>div>p {
    margin-top: 16px;
}
.services-content>div>h2,
.prices-content>div>h2,
.contacts-content>div>h2 {
    display: inline-block;
    color: #111111;
    font-size: 36px;
}
.contacts-content>div>h2 {
    padding-bottom: 35px;
}
.services-content>div>span,
.contacts-content>div>span,
.forma_right>div>a>span {
    padding-left: 12px;
    color: #727272;
    font-size: 14px;
}
h2>span {
    color: #727272;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 300;
}
.services-content>div>div>div>p:nth-child(1),
.price-item h3 {
    color: #232323;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

/* =====================
    9. Prices Section
    ===================== */
.price-item h3 {
    font-weight: 700;
    padding: 30px;
    margin-bottom: 0px;
}
.price-item h3 .price {
    font-size: 17px;
    margin-bottom: 0px;
}
.services-content>div>div>h3 {
    margin-left: -28px;
    padding: 25px 0 46px 0;
    color: #232323;
    font-size: 24px;
}
.prices-section {
    padding: 80px 0px 60px 0px;
}
.prices-content>div>div {
    margin: 50px 0px;
}
.price-item {
    width: 100%;
    max-width: 370px;
    background-color: #f3f5ee;
    margin: 0 0 30px 0;
    overflow: hidden;
    box-shadow: inset 1px 1px 4px 0px rgb(65 78 107 / 41%);
}
.price-item:hover {
    box-shadow: 0 0 10px rgb(0 0 0 / 63%);
    cursor: pointer;
}
.price-grid {
    display: flex;
    gap: 30px;
}
.price-column {
    flex: 1;
}
.prices-content>div>div>div>img {
    display: block;
    transform: scale(1);
    transition: all .5s ease 0s;
    width: 100%;
}

/* =====================
    10. Contacts Section
    ===================== */
.contacts-section {
    padding: 80px 0px 60px 0px;
}
.contacts-content>div>p {
    margin-bottom: 73px;
}
.contacts-content div {
    margin-bottom: 39px;
}
.contacts-content div a {
    margin: 0px 21px 20px 0px;
}
.map {
    width: 100%;
    height: 282px;
    overflow: hidden;
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================
    11. Mobile Menu
    ===================== */
.hidden-menu-ticker {
    display: none;
}
.btn-menu {
    color: #fff;
    border: 1px solid #fff;
    background-color: #4b535a;
    box-shadow: 1px 1px 5px 0px rgb(40 53 115 / 62%);
    padding: 5px;
    position: fixed;
    top: 10px;
    left: 10px;
    cursor: pointer;
    transition: left .23s;
    z-index: 3;
    width: 25px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.btn-menu span {
    display: block;
    height: 5px;
    background-color: #fff;
    margin: 5px 0 0;
    transition: all .1s linear .23s;
    position: relative;
}
.btn-menu span.first {
    margin-top: 0;
}
.hidden-menu {
    display: block;
    position: fixed;
    list-style: none;
    padding: 50px 10px 10px;
    margin: 0;
    box-sizing: border-box;
    width: 200px;
    background-color: #ffffff;
    height: 100%;
    top: 0;
    left: -200px;
    transition: left .2s;
    z-index: 2;
    box-shadow: 0 0 10px rgb(0 0 0 / 63%);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hidden-menu li {
    padding: 10px 0;
}
.hidden-menu li a {
    font-size: 15px;
    color: #000;
    padding: 6px 0px;
}
.hidden-menu-ticker:checked ~ .btn-menu {
    left: 160px;
    border: 1px solid #4b535a;
    background-color: #ffffff;
}
.hidden-menu-ticker:checked ~ .hidden-menu {
    left: 0;
}
.hidden-menu-ticker:checked ~ .btn-menu span.first {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: 10px;
    background-color: #4b535a;
}
.hidden-menu-ticker:checked ~ .btn-menu span.second {
    opacity: 0;
}
.hidden-menu-ticker:checked ~ .btn-menu span.third {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    top: -10px;
    background-color: #4b535a;
}

/* пятый экран  карусель*/
.testimonials-carousel-section {
  background-image: linear-gradient(to top right, #8bb4bbd8, #ebfeffad);
  padding: 80px 0px 60px 0px; 
  text-align: center;
}

.testimonials-carousel__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #bba938;
    background-color: #ffffff;
    color: #8bb4bb;
    margin: 0 auto 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.testimonials-carousel__icon {
    font-size: 24px;
    line-height: 1;
}

.testimonials-carousel__track .owl-dot span{
  width: 8px !important;
  height: 8px !important;
  background-color: #ffffff !important;
  opacity: 0.3;
}

.testimonials-carousel__track .owl-dot.active span{
  opacity: 1;
}

.testimonials-carousel__name {
  color: #524848;
  font-family: "Josefin Sans - Semi Bold";
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.testimonials-carousel__quote {
  color: #524848;
  font-family: "Lato - Light Italic";
  font-size: 21px;
  font-weight: 400;
  line-height: 34px;
  padding: 0px 225px;
}
