/*
  TABLE OF CONTENTS
  1. Root Variables
  2. Base Styles
  3. Layout & Container
  4. Buttons
  5. Sections
  6. Modals
  7. Media Queries
*/

/**
  |============================
  | 1. Root Variables
  |============================
*/
:root {
    --white: #ffffff;
    --cloud: #f4f7fb;
    --navyblue: #16202b;
    --deep-sea: #0b1f26;
    --teal: #1a7070;
    --teal-soft: #7bdedc;
    --iris: #4895ef;
    --iris-deep: #4361ee;
    --cornflower: #e7e9fc;
    --slate: #3f4a56;
    --lightslate: #8e8f99;
    --success: #31d0aa;
    --danger: #fb6a6a;
    --ocean: #1cafbf;
    --main-font: 'Roboto', sans-serif;
    --logo-font: 'Raleway', sans-serif;
    --gradient-soft: linear-gradient(180deg, rgba(11, 31, 38, 0.03) 0%, rgba(11, 31, 38, 0) 70%);
    --gradient-brand: radial-gradient(120% 120% at 50% 0%, rgba(26, 112, 112, 0.1) 0%, rgba(255, 255, 255, 0) 65%);
    --gradient-accent: linear-gradient(135deg, rgba(123, 222, 220, 0.45), rgba(72, 149, 239, 0.45));
    --shadow-soft: 0 24px 50px rgba(15, 27, 43, 0.12);
    --space-section-desktop: 160px;
    --space-section-tablet: 120px;
    --space-section-mobile: 80px;
    --space-section: var(--space-section-desktop);
}

/**
  |============================
  | Base styles
  |============================
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    color: var(--slate);
    background: #f8fafa;
    min-height: 100vh;
}

section {
    --section-space: var(--space-section);
    padding-top: calc(var(--section-space) / 2);
    padding-bottom: calc(var(--section-space) / 2);
}

body:not(.schedule-page) {
    padding-top: 88px;
    padding-top: calc(88px + env(safe-area-inset-top));
}

@media screen and (max-width: 1157px) {
    :root {
        --space-section: var(--space-section-tablet);
    }
}

@media screen and (max-width: 767px) {
    :root {
        --space-section: var(--space-section-mobile);
    }
}

@media screen and (min-width: 768px) and (max-width: 1157px) {
    .dark {
        min-height: 480px;
    }
}

/* reset style start */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

address {
    font-style: normal;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link {
    text-decoration: none;
    color: currentColor;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: 2px;
}

.btn {
    min-width: 72px;
    min-height: 48px;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--iris-deep), var(--iris));
    box-shadow: 0 12px 24px rgba(72, 149, 239, 0.28);
    transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(72, 149, 239, 0.34);
}

/* reset style end */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--iris-deep), var(--iris));
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    margin: 0 auto;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--teal), var(--iris));
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.portfolia-btm-list {
    display: flex;
}

.title {
    color: var(--navyblue);
    text-align: center;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.text {
    color: rgba(15, 27, 43, 0.7);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/**
  |============================
  | Button styles
  |============================
*/

/**
  |============================
  | Layout container
  |============================
*/

.container {
    min-width: 320px;
    max-width: 428px;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

/* когда в мобильном меню */
.mobile-menu-login {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.mobile-menu-login button {
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  background-color: var(--iris);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
}
.mobile-menu-login button:hover {
  background-color: var(--ocean);
}

/**
  |============================
  | Reviews section
  |============================
*/

.reviews-section {
    background: linear-gradient(180deg, #f9fbfd 0%, #e6f7f8 100%);
}

.reviews-header {
    max-width: 680px;
    margin: 0 auto 48px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reviews-title {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin: 0;
}

.reviews-subtitle {
    color: rgba(15, 27, 43, 0.7);
    line-height: 1.6;
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.reviews-swiper {
    width: 100%;
    padding: 8px 8px 32px;
}

.reviews-swiper .swiper-slide {
    display: flex;
    height: auto;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    padding: 28px;
    min-height: 320px;
    max-height: 340px;
    background: #ffffff;
    color: rgba(15, 27, 43, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(15, 27, 43, 0.08);
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(72, 149, 239, 0.25);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(11, 31, 38, 0.18);
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-name {
    font-weight: 600;
    font-size: 18px;
    color: #16202b;
}

.review-role {
    font-size: 14px;
    color: rgba(15, 27, 43, 0.6);
}

.review-instagram {
    color: var(--iris);
    transition: color 200ms ease, transform 200ms ease;
}

.review-instagram:hover,
.review-instagram:focus {
    color: var(--teal);
    transform: translateY(-2px);
}

.review-text {
    flex-grow: 1;
    color: rgba(15, 27, 43, 0.78);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.review-rating {
    font-weight: 600;
    color: var(--iris);
}

.reviews-swiper .swiper-pagination {
    position: static;
    /* display: flex;
    justify-content: center; */
    gap: 8px;
    margin: 24px auto 0;
    width: 100%;
}

.reviews-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(72, 149, 239, 0.3);
    opacity: 1;
    margin: 0 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--iris);
    transform: scale(1.25);
}


/**
  |============================
  | Map 2 page
  |============================
*/

.map-section {
  background-color: #f8fafa;
  text-align: center;
}

.map-title {
  font-size: 32px;
  color: var(--navyblue);
  margin-bottom: 32px;
  font-weight: 500;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}



/**
  |============================
  | Header styles 2 page
  |============================
*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--cornflower);
    background-color: var(--white);
    box-shadow: 0px 2px 4px rgba(46, 47, 66, 0.08);
    transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease, padding 250ms ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    transition: padding 250ms ease;
}

.header-nav {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 76px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.header-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}


.header-nav-list {
    display: inline-flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: space-between;
}

.header-nav-list .header-nav-item .header-nav-link {
    position: relative;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    background-color: transparent;
    border-radius: 2px;
    width: 100%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-link.current {
    color: var(--iris);
}

.header-nav-link.current::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    background-color: var(--iris);
    border-radius: 2px;
    width: 100%;
}

.header-nav-link:hover::after,
.header-nav-link:focus::after {
    background-color: var(--teal-soft);
}

.header-nav-item[data-protected-link],
.mobile-menu-item[data-protected-link] {
    display: none;
}

.header-nav-link {
    display: block;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-address-list {
    display: flex;
    gap: 40px;
}

.header-address-link {
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-login {
    min-width: auto;
    height: auto;
    padding: 12px 24px;
    font-size: 14px;
    line-height: 1.4;
}



.header-logo,
.footer-logo {
    font-family: var(--logo-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.header-logo {
    color: var(--teal);
}

.footer-logo {
    color: var(--white);
}

.header-logo-accent,
.footer-logo-accent {
    font-family: var(--logo-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.header-logo-accent {
    color: var(--teal-soft);
}

.header-nav-link {
    color: var(--navyblue);
    font-family: var(--main-font);
    font-weight: 500;
}

.header-nav-link:hover,
.header-nav-link:focus,
.header-address-link:hover,
.header-address-link:focus {
    color: var(--ocean);
}

.header .header-nav-list {
    display: none;
}

.header .header-address-list {
    display: none;
}

.header .header-nav-list .header-nav-link {
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.header .header-nav-list .header-nav-item .header-nav-link {
    display: block;
    padding: 24px 0;

}



.header .header-nav-link,
.header .header-address-link {
    line-height: 1.6;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.header .header-nav-item:hover .header-nav-link,
.header .header-nav-item:focus .header-nav-link {
    color: var(--ocean);
}

.header .header-address-link:hover,
.header .header-address-link:focus {
    color: var(--ocean);
}

/* =============================
   Dark section (з відео)
   ============================= */

.dark {
    position: relative;
    margin: 0 auto;
    max-width: 1440px;
    background: none;
    overflow: visible;
    min-height: 405px;

    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--space-section) / 2 - 40px);
    padding-bottom: calc(var(--space-section) / 2);
}

.dark-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 20, 35, 0.55);
    z-index: 1;
}

.dark-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 16px;
}

.dark-title {
    color: var(--white);
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 48px;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.dark-actions {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 1s ease 0.2s forwards;
}

@media screen and (max-width: 767px) {
    .dark {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        overflow: hidden;
    }

    .dark-video {
        top: 50%;
        left: 50%;
        width: 100vw;
        height: auto;
        min-height: 115%;
        transform: translate(-50%, -50%);
    }
}

.dark-button {
    background: linear-gradient(100deg, #4361ee, #4895ef);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(72, 149, 239, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-button:hover,
.dark-button:focus {
    box-shadow: 0 0 18px rgba(72, 149, 239, 0.7);
    transform: scale(1.05);
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.slots-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(12, 20, 35, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    padding: 0 12px;
}

.slots-modal.is-hidden {
    display: none;
}

.slots-modal.is-visible {
    opacity: 1;
    pointer-events: all;
}

.slots-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 40px;
    width: min(540px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.28);
    transform: translateY(100%);
    transition: transform 400ms ease;
}

.slots-modal.is-visible .slots-modal-content {
    transform: translateY(0);
}

.slots-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f1b2b;
}

.slots-modal-subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: rgba(15, 27, 43, 0.65);
    font-size: 14px;
    letter-spacing: 0.03em;
}

.slots-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(72, 149, 239, 0.3);
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 27, 43, 0.7);
    cursor: pointer;
    transition: background-color 250ms ease, transform 250ms ease, border 250ms ease;
}

.slots-modal-close:hover,
.slots-modal-close:focus-visible {
    background: rgba(72, 149, 239, 0.12);
    border-color: rgba(72, 149, 239, 0.45);
    transform: translateY(-2px);
}

.slots-modal-close-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.slots-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: inherit;
}

.slots-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.slots-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(28, 175, 191, 0.12);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  width: 100%;
}

.slots-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.slots-item-icon {
  font-size: 18px;
  line-height: 1;
}

.slots-item-date,
.slots-item-time {
  font-weight: 600;
}

.slots-item-time {
  background: rgba(28, 175, 191, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
  white-space: nowrap;
}

.slots-item-separator {
  opacity: 0.45;
}

.slots-empty {
  margin: 0;
  font-size: 14px;
  color: rgba(15, 27, 43, 0.7);
}



/**
  |============================
  | Advantages section
  |============================
*/

.advantages-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantages-title {
    font-size: 36px;
    color: var(--navyblue);
    letter-spacing: 0.02em;
}

.advantages-subtitle {
    color: rgba(15, 27, 43, 0.68);
    line-height: 1.7;
}

.advantages-list {
    display: grid;
    gap: 28px;
}

.advantages-item {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 24px 50px rgba(15, 27, 43, 0.12);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.advantages-item:hover,
.advantages-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(11, 31, 38, 0.16);
}

.advantages-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(123, 222, 220, 0.32), rgba(72, 149, 239, 0.32));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.45), 0 12px 24px rgba(15, 27, 43, 0.12);
}

.advantages-icon img {
    width: 44px;
    height: 44px;
}

.advantages-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advantages-card-title {
    font-size: 22px;
    color: var(--navyblue);
    letter-spacing: 0.01em;
}

.advantages-content p {
    color: rgba(15, 27, 43, 0.7);
    line-height: 1.7;
}


/**
  |============================
  | Actions section
  |============================
*/

.actions-title {
    margin-bottom: 48px;
}

.actions-list {
    display: grid;
    gap: 32px;
}

.actions-item {
    list-style: none;
}

.actions-item--hide-mobile {
    display: block;
}

.actions-card {
    display: flex;
    flex-direction: column;
    background: #f9fbfd;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(11, 31, 38, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.actions-card:hover,
.actions-card:focus-within {
    transform: scale(1.03);
    box-shadow: 0 18px 46px rgba(11, 31, 38, 0.12);
}

.actions-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.4s ease;
}

.actions-card:hover .actions-card-img,
.actions-card:focus-within .actions-card-img {
    transform: scale(1.05);
}

.actions-card-content {
    display: none;
    padding: 20px 24px 28px;
    gap: 10px;
    flex-direction: column;
}

.actions-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navyblue);
}

.actions-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: rgba(15, 27, 43, 0.6);
    justify-content: center;
}

.actions-card-description {
    color: rgba(15, 27, 43, 0.75);
    line-height: 1.6;
}

.actions-card-price {
    font-weight: 700;
    color: var(--teal);
}

.actions-card-cta {
    align-self: center;
    margin-top: 8px;
}


/**
  |============================
  | Masters section
  |============================
*/

.masters-section {
    background: #f9fbfd;
}

.masters-title {
    margin-bottom: 48px;
}

.masters-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.master-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, rgba(230, 247, 248, 1) 0%, rgba(245, 250, 251, 1) 100%);
    border-radius: 20px;
    padding: 24px;
    color: var(--navyblue);
    box-shadow: 0 12px 28px rgba(11, 31, 38, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.master-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 31, 38, 0.12);
}

.master-photo {
    /* width: 200px; */
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
}

.master-info {
    flex: 1;
}

.master-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--teal);
}
.master-role {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--teal);
}

.master-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(15, 27, 43, 0.8);
}


/**
  |============================
  | Contact options section
  |============================
*/

.contact-options {
    text-align: center;
    background: linear-gradient(180deg, #e6f7f8 0%, #f8fafa 100%);
}

.contact-options-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--navyblue);
    margin-bottom: 12px;
}

.contact-options-subtitle {
    font-size: 16px;
    color: rgba(15, 27, 43, 0.68);
    margin-bottom: 40px;
}

.contact-options-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-btn {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, rgba(123, 222, 220, 0.85), rgba(72, 149, 239, 0.85));
    box-shadow: 0 12px 22px rgba(15, 27, 43, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-btn svg {
    width: 40px;
    height: 40px;
}

.contact-btn:hover,
.contact-btn:focus {
    transform: scale(1.08);
    box-shadow: 0 18px 32px rgba(15, 27, 43, 0.22);
    animation: vibrate 0.3s ease-in-out;
}

.contact-call {
    background: linear-gradient(135deg, rgba(26, 112, 112, 0.9), rgba(49, 208, 170, 0.9));
}

.contact-viber {
    background: linear-gradient(135deg, rgba(115, 96, 242, 0.92), rgba(72, 149, 239, 0.92));
}

.contact-telegram {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.92), rgba(72, 149, 239, 0.92));
}

@keyframes vibrate {
    0% {
        transform: scale(1.08) rotate(0deg);
    }
    25% {
        transform: scale(1.08) rotate(2deg);
    }
    50% {
        transform: scale(1.08) rotate(-2deg);
    }
    75% {
        transform: scale(1.08) rotate(2deg);
    }
    100% {
        transform: scale(1.08) rotate(0deg);
    }
}


/**
  |============================
  | Footer
  |============================
*/

.footer {
    background: linear-gradient(180deg, #0b1f26 0%, #10323a 100%);
    color: rgba(255, 255, 255, 0.88);
    padding-top: calc(var(--space-section) / 2);
    padding-bottom: calc(var(--space-section) / 2);
}

.footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer .footer-logo-accent {
    color: var(--teal-soft);
}

.footer-logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--white);
}

.footer-social {
    fill: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 320px;
}

.footer-container {
    display: grid;
    gap: 40px;
}


.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #7bdedc;
    fill: currentColor;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.88);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-link:hover,
.footer-contact-link:focus {
    color: var(--teal-soft);
}

.footer-social-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-social-block .footer-social-text {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    max-width: 280px;
}

.footer-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 300ms ease, color 300ms ease;
}

.footer-instagram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--iris));
    box-shadow: 0 16px 32px rgba(15, 27, 43, 0.25);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.footer-instagram-link:hover,
.footer-instagram-link:focus {
    color: #f5e9ff;
}

.footer-instagram-link:hover .footer-instagram-icon,
.footer-instagram-link:focus .footer-instagram-icon {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(216, 82, 140, 0.32);
}

.footer-instagram-label {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
}

.footer-bottom {
    margin-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.footer-bottom-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.footer-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    font-size: 1.1em;
}


/**
  |============================
  | Modal
  |============================
*/


body.modal-open {
    overflow: hidden;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(12, 20, 35, 0.55);
    backdrop-filter: blur(6px);

    opacity: 1;
    visibility: visible;
    z-index: 900;

    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 72px 24px 24px 24px;

    transform: translateX(-50%) translateY(-50%) scale(1);

    width: 408px;
    min-height: 584px;
    border-radius: 4px;
    background: var(--DAIRY);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 2px 1px rgba(0, 0, 0, 0.2);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-login {
    width: min(360px, calc(100vw - 32px));
    min-height: auto;
    padding: 48px 32px 32px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    color: #0f1b2b;
    position: relative;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.login-backdrop {
    z-index: 950;
}

.backdrop.is-hidden .modal {
    transform: translateX(-50%) translateY(-50%) scale(0.2);
    opacity: 0;
    transition-delay: 0s;
}

.backdrop.is-hidden .modal-login {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
}

.modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #0f1b2b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-btn:hover,
.modal-btn:focus {
    background: rgba(255, 255, 255, 0.9);
}

.modal-btn-icon {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-icon {
  width: 12px;   
  height: 12px;  
  fill: currentColor;
  color: rgba(15, 27, 43, 0.7);
}


.modal-caption {
    color: var(--navyblue);
    margin-bottom: 16px;

    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Reviews form styles  */

.modal-form-label {
    display: block;
    margin-bottom: 4px;

    color: var(--lightslane);
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
}

.modal-form-field {
    margin-bottom: 8px;
}

.modal-form-comment-cont {
    margin-bottom: 16px;
}

.modal-form-label-cont {
    position: relative;
}

.modal-form-agreement-cont {
    margin-bottom: 24px;
}

.modal-form-input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    padding-left: 38px;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus {
    border-color: var(--iris);
}

.modal-form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-icon:hover {
    fill: var(--iris);
}

.modal-form-input:focus+.modal-form-icon {
    fill: var(--iris);
}

.modal-form-comment {
    width: 100%;
    height: 120px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    padding: 8px 16px;
    outline: transparent;
    resize: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-comment:focus {
    border-color: var(--iris);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: block;
    width: 100%;
}

.login-input {
    width: 100%;
    height: 44px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(46, 47, 66, 0.35);
    background-color: var(--white);
    font-size: 16px;
    line-height: 1.4;
    color: #0f1b2b;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input::placeholder {
    color: rgba(67, 68, 85, 0.6);
}

.login-input:focus {
    outline: none;
    border-color: var(--iris);
    box-shadow: 0 0 0 4px rgba(77, 90, 229, 0.15);
}

.login-error {
    display: none;
    margin: -4px 0 0;
    text-align: center;
    font-size: 14px;
    color: #d64545;
}

.login-error.is-visible {
    display: block;
}

.login-submit {
    width: 100%;
}

.modal-form-agreement {
    color: var(--lightslane);
    display: block;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
}

.modal-form-checkbox {
    margin-right: auto;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: transparent;
}

.modal-form-agreement-link {
    color: var(--iris);
}

input:checked+.modal-form-agreement>.modal-form-checkbox {
    background-color: var(--ocean);
    fill: var(--cloud);
    border: none;
}

.btn-accent {
    display: block;
    margin-right: auto;
    margin-left: auto;
    min-width: 169px;
    height: 56px;
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--white);
    cursor: pointer;
    background-color: var(--iris);
    border: none;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

/**
  |============================
  | Schedule page
  |============================
*/

.schedule-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1b2b 0%, #1b2e45 100%);
    color: #f5f7fb;
}

.schedule-page main {
    padding-top: calc(var(--space-section) / 2);
    padding-bottom: calc(var(--space-section) / 2);
}

.schedule-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.schedule-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 24px;
    color: inherit;
}

.schedule-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.schedule-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.schedule-field {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: rgba(245, 247, 251, 0.85);
}

.schedule-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(245, 247, 251, 0.35);
    background: rgba(15, 27, 43, 0.35);
    color: #f5f7fb;
    font-size: 16px;
    padding: 12px 14px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-input:focus {
    outline: none;
    border-color: #1cafbf;
    box-shadow: 0 0 0 3px rgba(28, 175, 191, 0.35);
}

.schedule-submit {
    width: 100%;
}

.schedule-feedback {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    color: #ffd166;
}

.schedule-feedback.success {
    color: #6ee7b7;
}

.schedule-feedback.error {
    color: #ff8b8b;
}

.schedule-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    backdrop-filter: blur(6px);
}

.schedule-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.schedule-delete {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #f97068;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.schedule-delete:hover,
.schedule-delete:focus {
    background: rgba(249, 112, 104, 0.15);
    color: #ffb3ad;
}

.schedule-empty {
    margin: 16px 0 0;
    font-size: 15px;
    color: rgba(245, 247, 251, 0.75);
}

.schedule-logout {
    background: transparent;
    border: 1px solid rgba(245, 247, 251, 0.4);
    color: inherit;
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease;
}

.schedule-logout:hover,
.schedule-logout:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.schedule-back {
    color: rgba(245, 247, 251, 0.75);
    font-size: 14px;
    text-decoration: none;
    transition: color 200ms ease;
}

.schedule-back:hover,
.schedule-back:focus {
    color: #ffffff;
}


/**
  |============================
  | porfolia main
  |============================
*/
.portfolia {
    padding-top: 96px;
    padding-bottom: 120px;
}

.portfolia-btm-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 72px;
}

.portfolia-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;
}

.portfolia-item {
    width: calc((100% - 48px) / 3);
}

.portfolia-link {
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolia-link:hover .porfolia-img-text,
.portfolia-link:focus .porfolia-img-text {
    transform: translateY(0%);
}

.portfolia-link:hover,
.portfolia-link:focus {
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolia-img-container {
    position: relative;
    overflow: hidden;
}

.porfolia-img-text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--cloud);
    padding: 40px 32px;
    background-color: var(--iris);
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.portfolia-container {
    padding: 32px 16px;
    border: 1px solid var(--cornflower);
    border-top: none;
}

.portfolia-subtitle {
    color: var(--navyblue);
    line-height: 1.2;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.portfolia-text {
    color: var(--slate);
    line-height: 1.5;
    letter-spacing: 0.02em;
}


/**
  |============================
  | Portfolio / Blog
  |============================
*/

.portfolio-section {
    background: linear-gradient(180deg, rgba(244, 244, 253, 0.6) 0%, rgba(255, 255, 255, 0) 120px);
}

.portfolio-title {
    color: var(--navyblue);
    text-align: center;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.portfolio-intro {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    color: rgba(67, 68, 85, 0.85);
}

.portfolio-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.portfolio-item {
    list-style: none;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(15, 27, 43, 0.12);
    transition: transform 300ms ease, box-shadow 300ms ease;
    height: 100%;
}

.portfolio-card:hover,
.portfolio-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15, 27, 43, 0.18);
}

.portfolio-media {
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 400ms ease;
}

.portfolio-card:hover .portfolio-img,
.portfolio-card:focus-within .portfolio-img {
    transform: scale(1.05);
}

.portfolio-description {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-card-title {
    font-size: 22px;
    line-height: 1.3;
    color: var(--navyblue);
}

.portfolio-description p {
    margin: 0;
    color: rgba(67, 68, 85, 0.85);
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.page-btn {
    background: var(--iris);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 250ms ease, transform 250ms ease;
}

.page-btn:hover,
.page-btn:focus {
    background: var(--ocean);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--gradient-accent);
}

/**
  |============================
  | Blog page
  |============================
*/

.blog-section {
    background: linear-gradient(180deg, #f9fbfd 0%, #eef6f7 65%, #f8fafa 100%);
}

.blog-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    color: rgba(15, 27, 43, 0.72);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.blog-title {
    color: var(--navyblue);
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.blog-subtitle {
    margin: 0 auto 16px;
}

.blog-subtitle:last-of-type {
    margin-bottom: 0;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-item {
    list-style: none;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(180deg, #e0f4f5 0%, #f9fbfd 100%);
    color: #1a1a1a;
}

.blog-card-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.blog-card:hover .blog-card-image,
.blog-card:focus-within .blog-card-image {
    transform: scale(1.03);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card-title {
    font-size: 28px;
    line-height: 1.25;
    color: var(--navyblue);
}

.blog-card-summary {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(15, 27, 43, 0.84);
}

.blog-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 400ms ease, opacity 400ms ease, margin-top 400ms ease;
}

.blog-card-body p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: rgba(15, 27, 43, 0.82);
}

.blog-card-body p:last-child {
    margin-bottom: 0;
}

.blog-card.is-expanded .blog-card-body {
    max-height: 1200px;
    opacity: 1;
    margin-top: 8px;
}

.blog-expand-btn {
    align-self: center;
    padding: 14px 32px;
}

.blog-pagination {
    margin-top: 56px;
}


/**
  |============================
  | Menu
  |============================
*/

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(72, 149, 239, 0.35);
    background: rgba(255, 255, 255, 0.8);
    color: var(--navyblue);
    cursor: pointer;
    transition: all 250ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--white);
    box-shadow: 0 0 10px rgba(72, 149, 239, 0.25);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

body.menu-open {
    overflow: hidden;
}

.menu-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(12, 20, 35, 0.55);
    backdrop-filter: blur(6px);
    padding: 0 16px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 300ms ease;
    z-index: 1100;
    overscroll-behavior: contain;
}

.menu-panel {
    position: relative;
    width: min(540px, 100%);
    max-height: 90vh;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    padding: calc(32px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform 380ms ease;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: calc(24px + env(safe-area-inset-top));
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(72, 149, 239, 0.35);
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: rgba(72, 149, 239, 0.2);
    border-color: rgba(72, 149, 239, 0.45);
}

.menu-container.is-open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.menu-container.is-open .menu-panel {
    transform: translateY(0);
}

.mobile-menu-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-logo .header-logo-icon {
    width: 36px;
    height: 36px;
}

.mobile-menu-logo .header-logo-text {
    font-size: 24px;
    line-height: 1;
}

.mobile-menu-tagline {
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(22, 32, 43, 0.72);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
    width: 100%;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 300ms ease, transform 300ms ease;
    transition-delay: calc(60ms * var(--item-index, 1));
}

.menu-container.is-open .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--navyblue);
    text-decoration: none;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    color: var(--teal);
}

.mobile-menu-current {
    color: var(--teal);
    font-weight: 700;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(72, 149, 239, 0.2);
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.mobile-contact-block {
    margin: 0;
    text-align: left;
}

.mobile-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(22, 32, 43, 0.65);
    margin-bottom: 24px;
}

.mobile-actions-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin: 0;
    text-align: left;
}

.mobile-actions-list li {
    list-style: none;
}

.mobile-actions-list .contact-btn {
    width: 64px;
    height: 64px;
    box-shadow: 0 12px 22px rgba(15, 27, 43, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: none;
}

.mobile-actions-list .contact-btn:hover,
.mobile-actions-list .contact-btn:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 18px 32px rgba(15, 27, 43, 0.22);
    animation: none;
}

.mobile-contact-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.mobile-login-btn {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
    background: linear-gradient(135deg, #6fc4d6 0%, #3b82f6 100%);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    margin: 0 auto;
    text-align: center;
}

.mobile-login-btn:hover,
.mobile-login-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.22);
}

.mobile-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}

.mobile-socials-item {
    list-style: none;
}

.mobile-socials-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--navyblue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 200ms ease, transform 200ms ease;
}

.mobile-socials-link:hover,
.mobile-socials-link:focus-visible {
    background: rgba(111, 196, 214, 0.25);
    transform: translateY(-1px);
}

.mobile-socials-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-socials-label {
    letter-spacing: 0.04em;
}

.highlight {
    color: var(--iris, #4d5ae5);
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.72px;
}

/* ========================================
   MEDIA QUERIES
======================================== */

@media only screen and (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media only screen and (min-width: 1158px) {
    .container {
        max-width: 1158px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 767px) {
    .header {
        padding-top: calc(8px + env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .header .header-container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .reviews-wrapper {
        padding: 0;
    }

    .header-logo {
        gap: 8px;
        margin-right: 48px;
    }

    .header-logo-icon {
        width: 28px;
        height: 28px;
    }

    .header-logo-text {
        font-size: 16px;
    }

    .actions-card {
        padding: 16px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 6px 16px rgba(11, 31, 38, 0.08);
    }

    .actions-item--hide-mobile {
        display: none;
    }

    .actions-card-img {
        border-radius: 14px;
        height: auto;
        margin-bottom: 12px;
        box-shadow: none;
    }

    .actions-card-content {
        display: flex;
        text-align: center;
    }

    .actions-card-cta {
        width: 100%;
    }

    .contact-btn {
        width: 80px;
        height: 80px;
    }

    .contact-options-title {
        font-size: 24px;
    }

    .footer {
        text-align: center;
    }

    .footer-brand,
    .footer-contacts,
    .footer-social-block {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .header-login {
        display: none;
    }

    .dark-actions {
        width: 100%;
    }

    .slots-modal {
        padding: 0 12px 12px;
    }

    .slots-modal-content {
        border-radius: 20px 20px 0 0;
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0));
    }

    .master-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* .master-description {
        text-align: left;
    } */
    .master-photo {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .master-info {
        padding-top: 16px;
    }
}

@media screen and (min-width: 768px) {
    .reviews-wrapper {
        gap: 32px;
    }

    .reviews-swiper {
        max-width: 880px;
    }

    .header .header-nav-list {
        display: flex;
        text-align: center;
        gap: 40px;
    }

    .header .header-address-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .dark-title {
        font-size: 56px;
        line-height: 60px;
        letter-spacing: 1.12px;
    }

    .advantages-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .advantages-item {
        padding: 36px 32px;
    }

    .actions-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actions-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .actions-card:hover,
    .actions-card:focus-within {
        transform: translateY(-6px);
        box-shadow: none;
    }

    .actions-card-img {
        height: 460px;
        box-shadow: 0 16px 32px rgba(11, 31, 38, 0.12);
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
    }

    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .slots-modal {
        align-items: center;
        padding: 24px;
    }

    .slots-modal-content {
        max-width: 420px;
        border-radius: 24px;
        transform: scale(0.95);
        transition: transform 300ms ease, opacity 300ms ease;
    }

    .slots-modal.is-visible .slots-modal-content {
        transform: scale(1);
    }

    .schedule-card {
        padding: 40px 48px;
    }

    .schedule-title {
        font-size: 32px;
    }

    .schedule-form-row {
        flex-wrap: nowrap;
    }

    .schedule-submit {
        align-self: flex-start;
        width: auto;
        min-width: 200px;
    }

    .portfolio-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .portfolio-description {
        padding: 28px 32px 32px;
    }

    .blog-title {
        font-size: 48px;
    }

    .blog-card {
        padding: 40px;
    }

    .blog-card-image {
        height: 280px;
    }

    .blog-expand-btn {
        align-self: flex-start;
    }

    .menu-toggle {
        display: none;
    }

    .menu-container {
        padding: calc(32px + env(safe-area-inset-top)) 48px calc(56px + env(safe-area-inset-bottom));
        gap: 40px;
    }

    .mobile-menu-link {
        font-size: 24px;
    }

    .mobile-actions-list {
        gap: 20px;
    }
}

@media screen and (min-width: 1158px) {
    .dark {
        min-height: 600px;
    }
    .reviews-swiper {
        max-width: 1020px;
    }

    .header-login {
        font-size: 16px;
        padding: 14px 28px;
    }

    .header .header-nav-list {
        display: flex;
        text-align: center;
        gap: 40px;
    }

    .header .header-address-list {
        display: flex;
        flex-direction: row;
        gap: 48px;
    }

    .advantages-title {
        font-size: 44px;
    }

    .advantages-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .advantages-card-title {
        font-size: 20px;
    }

    .actions-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: 1.3fr 1fr 1fr;
        align-items: flex-start;
        gap: 64px;
    }

    .header .header-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .blog-list {
        gap: 40px;
    }

    .blog-card {
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
    }

    .blog-card-media {
        flex: 0 0 380px;
        max-width: 420px;
    }

    .blog-card-image {
        height: 100%;
    }

    .blog-card-content {
        flex: 1;
    }

    .portfolio-list {
        gap: 40px;
    }

    .portfolio-img {
        height: 260px;
    }

    .highlight {
        font-size: 30px;
    }
}

@media screen and (max-width: 360px) {
    .mobile-menu-link {
        font-size: 24px;
    }
}

@media screen and (min-width: 428px) {
    .highlight {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-btn {
        transition: none;
    }

    .contact-btn:hover,
    .contact-btn:focus {
        animation: none;
        transform: none;
        box-shadow: 0 4px 12px rgba(15, 27, 43, 0.18);
    }

    .dark-title,
    .dark-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .dark-button {
        transition: none;
    }
}

@media (min-width: 768px) and (max-width: 1158px) {
    .team-container,
    .customers-container,
    .footer-container {
        max-width: 584px;
    }
}

@media (max-width:1558px) {
    .header .header-address-link {
        font-size: 12px;
    }
}
