body {
    margin: 0;
    padding: 0;
    cursor: default;
    font-family: "Roboto Flex", sans-serif;
}

.container {
    width: 100%;
    margin-inline: auto;
    /* ограничиваем ширину, но без жёстких px */
    max-width: clamp(320px, 90vw, 900px);
    container-type: inline-size;
}

/* =========================================================
   3. GRID (12 колонок, но современно)
   ========================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-3);
}
.all-buttons { 
    grid-template-columns: repeat(3, 1fr);
    gap:15px;
    display:grid;
    margin:0 0 20px 0;
    }
.mode-list {
    
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
} 
.mode-item-name {
    text-align: center;
    font-weight: 400;
    font-size: 23px;
    transition: all ease 0.6s;
    margin-top: -47px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    z-index: 10;
    color: #fff;
    padding: 10px 0;
    text-shadow: 0 0 5px #000;
    margin-bottom: 20px;
    border-radius: 0 0 16px 16px;
}
.mode-item-link {
    background: #ebebeb;
    display: block;
    color: #424242;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 300;
    transition: all ease 0.2s;
    background: #fff;
    box-shadow: 0 0 5px #d7d7d7;
}
.mode-item-wrapper {
    border: solid 1px #ccc;
    padding: 10px;

    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px #ccc;
}
.mode-item {
    width: 100%;
}
.mode-item-icon {
    text-align: center;
    margin: 0 0 5px 0;
}
.mode-item-icon img {
    display: block;
    border-radius: 15px;
    width: 100%;
    margin: 1px 0 7px 0;
    max-width:300px;
}
.flex-col {
    flex-direction: column;
}

.top-0 {
    top: calc(var(--spacing) * 0);
}

/*
  Один универсальный класс колонки
  span задаём через CSS-переменную
*/
.col {
    grid-column: span var(--col-span, 12);
}

/* =========================================================
   4. АДАПТАЦИЯ ЧЕРЕЗ CONTAINER QUERIES
   ========================================================= */

/*
  Эти правила срабатывают НЕ по экрану,
  а по реальной ширине контейнера
*/
/* =========================================================
   5. SPACING UTILS
   ========================================================= */

/* padding */
.pt-1 {
    padding-top: var(--s-1);
}

.pt-2 {
    padding-top: var(--s-2);
}

.pt-3 {
    padding-top: var(--s-3);
}

.pt-4 {
    padding-top: var(--s-4);
}

/* margin */
.mt-1 {
    margin-top: var(--s-1);
}

.mt-2 {
    margin-top: var(--s-2);
}

.mt-3 {
    margin-top: var(--s-3);
}

.mt-4 {
    margin-top: var(--s-4);
}

/*
  Да, классов стало меньше
  Зато они:
  – адаптивные
  – не требуют медиазапросов
*/
/* =========================================================
   6. FONT UTILS
   ========================================================= */

.fs-xs {
    font-size: var(--fs-xs);
}

.fs-sm {
    font-size: var(--fs-sm);
}

.fs-md {
    font-size: var(--fs-md);
}

.fs-lg {
    font-size: var(--fs-lg);
}

.fs-xl {
    font-size: var(--fs-xl);
}

/* =========================================================
   7. COMPONENT STYLE (пример)
   ========================================================= */
.page {
    width: 100%;
    min-height: 100vh;

    /* делаем page контейнером для Container Queries */
    container-type: inline-size;

    /* защита от горизонтального скролла */
    overflow-x: clip;
}

.area-grid {
    display: grid;
    gap: var(--s-2);
    grid-template-columns: 50px 1fr 32px;
}



/*


.area-text {
    color: var(--black);
    font-size: var(--fs-sm);
    border: none;
    outline: none;
    font-family: "Roboto Flex", sans-serif;
}
.area-text::placeholder {
    color: var(--gray);
    font-size: var(--fs-sm);
    font-family: "Roboto Flex", sans-serif;
}

.buttons-wrapper span, .send-wrapper span {
    font-size: var(--fs-xl);
    cursor: pointer;
    line-height: var(--fs-xl);
    padding: 3px;
    border-radius: 50%;
    transition: all ease 0.6s;
}
.buttons-wrapper span:hover {
    background: var(--light-gray);
}

.menu-group {
    position: relative;
}

/* пункты первого уровня */
.menu-item {
    all: unset;
    cursor: pointer;
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.menu-item:hover {
    background: #f3f3f3;
}

/* подменю */


/* открытие по hover (или можно по клику) */
.menu-group:hover > .submenu {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* пункты подменю */
.submenu button {
    all: unset;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.submenu button:hover {
    background: #f3f3f3;
}

.area-wrapper {
    position: relative;
}

.buttons-wrapper {
    position: relative;
}

/* КНОПКА + */
.plus-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    transition: color .2s ease;
    outline: none;
}

.plus-btn:hover {
    color: #000;
}

/* МЕНЮ */
.plus-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;

    display: grid;
    gap: 4px;

    min-width: 220px;
    padding: 8px;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12),
    0 2px 6px rgba(0, 0, 0, .08);

    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;

    transition: opacity .2s ease,
    transform .2s ease;
}

/* ОТКРЫТО */
.buttons-wrapper:has(.plus-btn[aria-expanded="true"]) .plus-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ПУНКТЫ */
.plus-menu button {
    all: unset;
    cursor: pointer;
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    width: calc(100% - 20px);
    font-size: 14px;
    line-height: 1.3;

    transition: background .15s ease;
}

.plus-menu button:hover {
    background: #f3f3f3;
}

.icon {
    height: 15px;
    display: inline-block
}

.icon:before {
    font-size: 15px;
    display: block;
    height: 15px;
    line-height: 15px;
}

.icon.robot::before {
    content: "🤖";
    font-size: 15px
}

.icon.video::before {
    content: "🎬";
}

.icon.image::before {
    content: "🖼️";
}

.icon.seo::before {
    content: "✍️";
}

.icon.edu::before {
    content: "🎓";
}

.icon.food::before {
    content: "🍽️";
}

.icon.business::before {
    content: "💼";
}

.icon.med::before {
    content: "🩺";
}

.icon.celebration::before {
    content: "🎉";
}

.icon.review::before {
    content: "⭐";
}

.icon.logo::before {
    content: "🎨";
}

.icon.translate::before {
    content: "🔤";
}

.inside_form {
    max-width: 250px;
    margin: 0 auto;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 1px solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-primary {
    border: none;
    color: #fff;
    background: var(--blue);
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
}